Home > Mobile >  How to set a default marker to the location based lat and long in google map received by Google Stat
How to set a default marker to the location based lat and long in google map received by Google Stat

Time:04-08

I want google map image with default marker like below. enter image description here

But, It is coming naked with marker. Click below link

enter image description here

How can I set marker same as previous photo??

CodePudding user response:

You can set the color of the marker to red, plus add the marker location at the end. Here’s a Static Map API web request for reference:

https://maps.googleapis.com/maps/api/staticmap?center=28.6086154,77.3566754&zoom=14&size=500x250&maptype=roadmap&markers=color:red|28.6086154,77.3566754&key=YOUR_API_KEY

More info can be found here:

  • Related