Releases: pelias/leaflet-plugin
Releases · pelias/leaflet-plugin
v1.12.0
v1.11.0
v1.10.0
v1.9.4 (September 5, 2017)
- Minor under-the-hood tweaks to improve compatibility upstream in mapzen.js.
v1.9.3 (August 28, 2017)
- Bug fix: Fixed an exception when attempting to remove attribution when no attribution object existed. Thanks @JoaoMosmann for your PR
v1.9.2 (April 25, 2017)
- Real small tweak: higher-resolution images now show up on devices that support it, but don't quite have the resolution of Apple Retina devices.
- Bug fix: Fixed a reference to the
@mapbox/corslite
library under the hood. A wrong reference broke the earlier v1.9.1 build.
v1.9.1
v1.9.0 (April 5, 2017)
- It is now possible to set the return value of
require()
orimport
to a variable. You can now do this:
var MyGeocoder = require('leaflet-geocoder-mapzen')
var geocoder = new MyGeocoder()
This sets the require('leaflet-geocoder-mapzen')
to MyGeocoder
, which you can then instantiate with the new
keyword at a later time. Previously, setting the return value of the require()
or import
did nothing. In order not to break existing functionality, the side-effect of attaching to L.Control.Geocoder
still happens automatically when the module is imported. #154
- If you want to prevent the side-effect of attaching to
L
, you can import thecore
module directly:
// Requiring only the base container (no L namespace)
var Geocoder = require('leaflet-geocoder-mapzen/src/core')
// or in ES2015
import Geocoder from 'leaflet-geocoder-mapzen/src/core'
// ...
const geocoder = new Geocoder()
const nope = new L.Control.Geocoder() // will be undefined
- Under the hood, the plugin's implementation of AJAX requests have been swapped out in favor of Mapbox’s
corslite
module.
v1.8.2 (April 3, 2017)
- Small tweak in how we call the
/place
endpoint on Mapzen Search: we will no longer make these requests when a feature does not have agid
property. - Fixed a bug in a rare situation where the map would suddenly stop responding to a scroll wheel interaction.
v1.8.1 (March 16, 2017)
- Fix a bug where the input would display "undefined" instead of the actual text when navigating through a result dropdown with arrow keys in IE8.