On Jun 6, 9:24 pm, AndyBob <[email protected]> wrote:
> I am working on a project where people can type in their postal/zip
> code and the map will zoom to that area. That works fine. I want to
> add multiple static pins to the map so that people can see which
>pin is closest to their postal/zip code. If anybody can help with
> this it will be greatly appreciated. Here is my current code
<snip>
>
> to this i need to add multiple static pins using latitude longitude
> for example
>
> var pins = [
> ['Church Road,', 51.4579472, -2.5655495],
> ['Hanley Road ', 52.0653093, -2.2198069],
>
> ];
>
> function setMarkers(map, locations) {
>
> var image = new google.maps.MarkerImage('pinicon.png',
> new google.maps.Size(40, 45));
>
> for (var i = 0; i < locations.length; i++) {
> var pins = locations[i];
> var myLatLng = new google.maps.LatLng(pins[1], pins[2]);
> var marker = new google.maps.Marker({
> position: myLatLng,
> map: map,
> title: pins[0],
> icon: image,
>
> again any help with this will be greatly appreciated.
Where is the link to your map that is requested in the Posting
Guidelines?
http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e
What is wrong with your example?
What errors do you get?
-- Larry
>
> Thanks in advance
>
> Andy
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.