javascript - Click button to highlight a Map Marker (Gmaps) - how? -
on page need "get directions," button highlight 1 of 3 points/map markers on map. far, have following wrapped around button/img....
<a href="https://maps.googleapis.com/maps/api/staticmap?center=" + 37.7029 + "," + -121.9335 + "&zoom=13&size=300x300&sensor=false"><img src="images/get-directions.jpg" alt="get directions"></a><br>
though code not working. idea, went wrong code or know better way?
it looks using static map url have embed map?
https://www.google.com/maps/embed/v1/directions ?key=api_key &origin= &destination=
Comments
Post a Comment