vitalidze / traccar-web

Traccar Web UI mod
http://traccar.litvak.su/
151 stars 145 forks source link

Search bar for OSM map #882

Open NordicBlueNL opened 7 years ago

NordicBlueNL commented 7 years ago

Hi, Would it be possible to have a search bar in the map to look for a certain place in OSM? Like Nominatim?

Where would I have to look to implement it myself?

Regards, Niels

NordicBlueNL commented 7 years ago

Example: https://github.com/jonataswalker/ol3-geocoder / http://jsfiddle.net/jonataswalker/c4qv9afb/

vitalidze commented 7 years ago

It should be possible. However, I don't think there is a similar built-in component because in OpenLayers2 there are no geo-coders.

If you are familiar with project and technologies used (GWT, GXT, OpenLayers) then to implement it yourself I think you need to update MapView and MapController classes. Most probably you will need to define your own GWT-openlayers control or just create a separate window opened by clicking some button outside map.

Turbovix commented 7 years ago

@nielslelieveld, only those who work with vehicle tracking knows how this feature is essential. It would also be important a button to open a window or external guide the maps with the open StreetView the vehicle's coordinates.