Multiple markers with labels in Google Maps
I'd like to implement multiple markers with labels (documented here: http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.0.1/docs/examples.html) and I'm having some problems with writing the code. For 2 markers for example you'd have to use the following code: var latlng1 = new google.maps.LatLng(49, -123); var latlng2 = new google.maps.LatLng(48, -123); var marker1 = new MarkerWithLabel({ position: latlng1, draggable: true, map: map, labelContent: "abcd", labelAnchor: new google.maps.Point(22, 0), labelClass: "labels", labelStyle: {opacity: 0.75} }); var marker2 =
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.