I'm making a Openlayers map with some shapefile and I have Google Maps base layer. I want to create a text area and a button. When I input a address and click the button, the map should show me the google maps address in the map. Can you help me please ?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
this is my code
|
|||
|
|
|
Try the below code. var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': address }, function (results, status) {
|
|||
|
|
