homepage Welcome to WebmasterWorld Guest from 54.163.72.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Google / Google Desktop Tools and Google Labs Projects
Forum Library, Charter, Moderator: open

Google Desktop Tools and Google Labs Projects Forum

    
Google Maps API help
how to use several different markers
proper_bo




msg:1191289
 12:07 pm on Oct 6, 2005 (gmt 0)

I can only find code that uses loops (as in the google tutorials) to create multiple original markers on a map. Can somebody please post the code I would use to add two different coloured small google pins to a map in slightly different locations.
I know you need:

var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);

and you need to create and center the map using the usual code but what is the code to create and place the two different coloured small pegs with info windows on click.

for some reason I can't seem to find really simple examples of slightly more complicated options for google maps api.

Thank you.

Harry

 

proper_bo




msg:1191290
 2:01 pm on Oct 6, 2005 (gmt 0)

Should this be in the javascript forum?

If not then are there plans for a google maps api forum?

Just wondering as it seems to be very lonely in here.

proper_bo




msg:1191291
 6:04 pm on Oct 6, 2005 (gmt 0)


I found the answer myself. Finally got my hands on a map page that shows the points seperately:

[thompsonbd.com...]

went to there and viewed the source.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google Desktop Tools and Google Labs Projects
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved