KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The docs of Google Maps V3 JS API does not seem to give the interface of the construct of google.maps.Icon . I found an example with MarkerImage , which seems to be deprecated now. So, what are the possible google.maps.Icon construct parameters and what is their order? How to define icon size, icon offset in sprite, icon anchor, etc? Edit: How would I create an icon and assign it to a marker? Eg (not tested/does not work): var icon = new google.maps.Icon(path, new google.maps.Size(32, 32), // size new google.maps.Point(0, 32), // offset in sprite null, // anchor ); I do see the docs but I do not see example usage if that class!
Tags (comma-separated)
Save Edits
Cancel