mirror of
https://github.com/maputnik/editor.git
synced 2026-06-08 16:27:26 +00:00
Add nominatim search to maputnik (#873)
This replaces PR: - #785 Before:  After:  This is based on the geocoder example in maplibre docs: https://maplibre.org/maplibre-gl-js/docs/examples/geocoder/
This commit is contained in:
@@ -23,4 +23,10 @@ describe("map", () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("search", () => {
|
||||
it('should exist', () => {
|
||||
then(get.searchControl()).shouldBeVisible();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -177,5 +177,6 @@ export class MaputnikDriver {
|
||||
skipTargetLayerEditor: () =>
|
||||
this.helper.get.elementByTestId("skip-target-layer-editor"),
|
||||
canvas: () => this.helper.get.element("canvas"),
|
||||
searchControl: () => this.helper.get.element('.maplibregl-ctrl-geocoder')
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user