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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -