-1

I want to add a marker on the city on Google Map, but as I load the name of the city from DB, I do not know its coordinates. Is there any way to put a marker on the map without knowing exact coordinates of place we want to mark? Unfortunately, in this examples I do not see such options. Thanks in advance!

TN888
  • 7,659
  • 9
  • 48
  • 84

1 Answers1

2

Why not search for the LatLong with their geocoding API and use that? https://developers.google.com/maps/documentation/javascript/geocoding

jered
  • 11,220
  • 2
  • 23
  • 34