How to display a marker using address only and not longitude and latitude
Asked
Active
Viewed 1,754 times
0
-
Possible duplicate of [Place Markers from Name, Address and Post Code](https://stackoverflow.com/questions/15703918/place-markers-from-name-address-and-post-code) – Danziger Jun 04 '17 at 13:29
-
I am using openlayers map and not google map. – N.R Jun 04 '17 at 13:58
1 Answers
1
OpenLayers does not support geocoding out of the box.
You could use third party libraries like this one:
https://github.com/jonataswalker/ol3-geocoder
Or geocoding services like Google's Geocoding service or OGC OpenLS, which you can see in a working example with an OpenLayers map here:

Danziger
- 19,628
- 4
- 53
- 83
-
1Link dev.openlayers.org/examples/openls.html no longer works, but ol3-geocoder proved useful, thanks! – Ricardo Peres May 30 '22 at 11:09