I think I found out why the zIndexProcess function never gets called.
var marker = new GMarker(new GLatLng(43.92,-79.1),iconObjects[1],
{zIndexProcess:importanceOrder});
should be:
var marker = new GMarker(new GLatLng(43.92,-79.1), {icon: iconObjects
[1], zIndexProcess:importanceOrder});
It's a coincidence that the custom icons appear. Api interprets the
line as the old style (deprecated) constructor where icon was given as
second parameter.
I was staring at the code for ten minutes or more and all I found was
that the function inverseOrder() is defined twice. But noticing that
mouse cursor doesn't change over the custom markers revealed the
mistake. The third parameter of the old constructor made the marker
non-clickable.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---