Thanks Barry
I've tried this:
function createMarker(point, state, punishment, stat) {
var marker = new GMarker(point, customIcons[punishment]);
return marker;
}
if (parseFloat(stat) > 0) {
var html = "<b>Total Executions: </b>" + stat;
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
});
markers fall, but none are clickable?
without
function createMarker(point, state, punishment, stat) {
var marker = new GMarker(point, customIcons[punishment]);
return marker;
}
no markers are created, have I missed something??
On May 19, 10:38 am, Barry Hunter <[email protected]> wrote:
> if (parseFloat(stat) > 0) {
> var html = "<b>Total Executions: </b>" + stat;
> GEvent.addListener(marker, 'click', function() {
> marker.openInfoWindowHtml(html);
> });
>
> }
>
> On 19 May 2010 14:25, Amanda <[email protected]> wrote:
>
>
>
> > Good Morning,
>
> > I've been scouring the boards looking for a seemingly simple answer,
> > but can't find a solution that fits. I've created a map with custom
> > icons based on an attribute value of yes (blue) or no (red). I would
> > like to show a statistic (ie marker.OpenInfoWindowHtml) if that value
> > is yes and make the other custom icons non-clickable. This could also
> > be based off the statistic value, if '0' not clickable.
>
> > Here is the url:http://maps.cmpgaleapps.com/map4.htm
>
> > Can anyone offer advice on the best way to make this happen or point
> > me at an example?
>
> > Thanks
> > Amanda
>
> > --
> > 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
> > athttp://groups.google.com/group/google-maps-api?hl=en.
>
> --
> 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
> athttp://groups.google.com/group/google-maps-api?hl=en.
--
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.