On Nov 25, 2:34 pm, Steve the Canuck <[email protected]> wrote: > Thanks, yeah I've seen these kinds of tutorials, but I don't really > want to make a custom icon per say. I know when I've used Google Maps > via the interface, I can choose from a number of built in placemark > icons. I'd really just like to switch to one of those.
The default icon is the default icon. The only way to change it is to define a different GIcon, you can use your own images with custom GIcons like: http://www.geocodezip.com/v2_basic8h.asp?filename=example_icons.xml Or Google does have some images you can reference, but you still need to define the GIcon This page uses "ridefinder" icons from Google's site: http://www.geocodezip.com/v2_basic8g.asp?filename=example_icons.xml -- Larry > > Btw, I am looking into support for the plugin, but as with much open > source code, the support is limited to non-existent. I've studied the > code and it hasn't yielded enough information to me, that's why I'm > trying to figure out what my other options might be. > > Thanks, > Steve > > On Nov 25, 5:24 pm, "[email protected]" <[email protected]> > wrote: > > > > > On Nov 25, 2:18 pm, Steve the Canuck <[email protected]> wrote: > > > > Hi, > > > > I'm just trying to do something pretty simple. I am grabbing a bunch > > > of locations from a database and placing them on a map. One of the > > > locations is a reference point (eg: a postal or zip code). I'd like > > > the marker for the reference location to be different than the others. > > > > I notice that by default I get a little red placemark marker for my > > > locations. Is there a way to just tell the marker to be a different > > > color? > > > Yes. It is referred to as a custom icon (or a custom marker): > > From Mike Williams' tutorial: > > Part 9 Making your own custom markers.http://econym.org.uk/gmap/custom.htm > > > > I can see the markers are being placed in my documents like this: > > > > marker = new google.maps.Marker(new google.maps.LatLng > > > (43.6618,-79.3798));google.maps.Event.addListener > > > (marker,"click",function(){this.openInfoWindowHtml('<b>Maple Leaf > > > Gardens</b><br/>\n60 Carlton St.<br/>\nToronto, ON<br/> > > > \nCanada')});map.addOverlay(marker); > > > > I'd just like to get an idea of how that code would look different in > > > order to declare a marker a different color. I'm actually not > > > outputting the Google API code directly, I'm using a plugin. > > > Then maybe you will need to investigate whether or not the plugin > > handles custom markers or not. > > > -- Larry > > > > Btw, I did a search on this topic and the only similar post I found > > > was about 2 years old and the API objects have changed a lot since > > > then. > > > > Thanks, > > > Steve- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en.
