Skip to content

Commit

Permalink
Bump to v4.3.3
Browse files Browse the repository at this point in the history
#284 keepOpen flag not working for Submit Button
#285 The marker is an external dependency
#286 mapquest API change
  • Loading branch information
Dominique92 committed Mar 15, 2024
1 parent eab21d9 commit ab76279
Show file tree
Hide file tree
Showing 19 changed files with 113 additions and 74 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ You can see
* a [demo of searching in proton provider using a glass button](http://dominique92.github.io/ol-geocoder/examples/control-glass.html)
* a [demo of creating a custom provider](http://dominique92.github.io/ol-geocoder/examples/custom-provider.html)

## What's new in 4.3.2 ?
Fix current issues
* [#282](https://github.com/Dominique92/ol-geocoder/issues/282) Tile layer is hidden by the marker layer in Openlayers 9.0.0
* [#280](https://github.com/Dominique92/ol-geocoder/pull/280) Bump @adobe/css-tools from 4.3.1 to 4.3.2
* [#279](https://github.com/Dominique92/ol-geocoder/pull/279) Bump @babel/traverse from 7.22.17 to 7.23.2
## What's new in 4.3.3 ?
* [#284](https://github.com/Dominique92/ol-geocoder/issues/284) keepOpen flag not working for Submit Button
* [#285](https://github.com/Dominique92/ol-geocoder/issues/285) The marker is an external dependency
* [#286](https://github.com/Dominique92/ol-geocoder/issues/286) mapquest API change

## Providers
The plugin supports (for now) the following providers:
Expand Down
68 changes: 39 additions & 29 deletions dist/ol-geocoder-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ol-geocoder-debug.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/ol-geocoder.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* ol-geocoder - v4.3.2
* ol-geocoder - v4.3.3
* A geocoder extension compatible with OpenLayers v6.x to v9.0
* https://github.com/Dominique92/ol-geocoder
* Built: 27/02/2024 17:01:45
* Built: 15/03/2024 08:57:06
*/

.ol-touch .ol-control.gcd-gl-control button {
Expand Down
6 changes: 3 additions & 3 deletions dist/ol-geocoder.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ol-geocoder.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/ol-geocoder.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/control-glass.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
lang: 'en',
placeholder: 'Search for ...',
limit: 5,
keepOpen: false,
keepOpen: true,
});

map.addControl(geocoder);
Expand Down
21 changes: 17 additions & 4 deletions konstants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,27 @@ export const TARGET_TYPE = {
INPUT: 'text-input',
};

export const FEATURE_SRC = '//cdn.rawgit.com/jonataswalker/map-utils/master/images/marker.png';
export const FEATURE_SRC = 'data:image/svg+xml;charset=utf-8,' +
'<svg width="26" height="42" viewBox="0 0 26 42" xmlns="http://www.w3.org/2000/svg">' +
'<polygon points="1,18 14,42 25,18" fill="rgb(75,75,75)" />' +
'<ellipse cx="13" cy="13" rx="13" ry="13" fill="rgb(75,75,75)" />' +
'<ellipse cx="13" cy="14" rx="6" ry="6" fill="yellow" />' +
'</svg>'; // #285

export const PROVIDERS = {
OSM: 'osm',
MAPQUEST: 'mapquest',
PHOTON: 'photon',
BING: 'bing',
MAPQUEST: 'mapquest',
OPENCAGE: 'opencage',
OSM: 'osm',
PHOTON: 'photon',
};

export const APIS = {
BING: 'https://dev.virtualearth.net/REST/v1/Locations',
MAPQUEST: 'https://nominatim.openstreetmap.org/search', // #286
OPENCAGE: 'https://api.opencagedata.com/geocode/v1/json?',
OSM: 'https://nominatim.openstreetmap.org/search',
PHOTON: 'https://photon.komoot.io/api/',
};

export const DEFAULT_OPTIONS = {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ol-geocoder",
"version": "4.3.2",
"version": "4.3.3",
"description": "A geocoder extension compatible with OpenLayers v6.x to v9.0",
"author": "Jonatas Walker",
"homepage": "https://github.com/Dominique92/ol-geocoder",
Expand Down
2 changes: 1 addition & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Base extends Control {
featureStyle: [
new Style({
image: new Icon({
scale: 0.7,
anchor: [0.5, 1], // #285
src: FEATURE_SRC
})
}),
Expand Down
2 changes: 1 addition & 1 deletion src/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class Html {
elements = {
container,
control: container.querySelector(`.${klasses.inputText.control}`),
label: container.querySelector(`.${klasses.inputText.label}`),
label: container.querySelector(`.${klasses.inputText.label}`), // #198
input: container.querySelector(`.${klasses.inputText.input}`),
search: container.querySelector(`.${klasses.inputText.search}`),
result: container.querySelector(`.${klasses.inputText.result}`),
Expand Down
Loading

0 comments on commit ab76279

Please sign in to comment.