What's Changed
- fixed proximity javadoc by @zdila in #51
- fix margin in quirks mode by @zdila in #52
- fixed TypeError by @zdila in #53
- included map to react example by @zdila in #54
- cleaned geocoding control events (fixes #49) by @zdila in #55
- improved markers customization by @zdila in #57
- fixed leaflet control position option (fixes #60) by @zdila in #62
- Workaround to prevent collision with svelte-maplibre (fixes #59) by @zdila in #63
- vendor compatible events by @zdila in #61
- Implement way to display picked feature of polygon without a marker. by @zdila in #64
- API cleanup for v2.0.0 by @zdila in #65
- bumped version by @zdila in #67
Full Changelog: v1.4.1...v2.0.1
Breaking changes
- Events were reworked to be idiomatic per map library
- Universal example for MapLibre GL, MapTiler SDK, Leaflet and Openlayers:
geocodingControl.on("featureslisted", (e) => console.log(e.features));
- For vanilla JS EventTarget API is used. Example:
geocodingControl.addEventListener("response", (e) => console.log(e.detail.url));
- Universal example for MapLibre GL, MapTiler SDK, Leaflet and Openlayers:
zoom
parameter must be now onlyRecord<string, number>
and notnumber
which was already deprecated- removed deprecated
maxZoom
- For
showPlaceType
parameter,false
has been replaced by with"never"
and"ifNeeded"
by"if-needed"
- Replaced parameter
showFullGeometry
withpickedResultStyle
which is now default"full-geometry"
. To keep old behavior use"full-geometry-including-polygon-center-marker"
instead oftrue
or"marker-only"
instead offalse
. - For
enableReverse
parameter,false
has been replaced by"never"
,true
by"button"
- Advanced: Changed
MapController
interface