Yes importanceOrder is a function, in accordance with zIndexProcess
definition.
My problem was when I first tried markerOptions = { icon:eIcon,
zIndexProcess:importanceOrder}; I did not have the importanceOrder
defined correctly.

So for any interested, my solution was:
function importanceOrder (marker,b) {
        return marker.importance;
}

function makeMarker(point)
        var eIcon = new GIcon(G_DEFAULT_ICON);
        eIcon.shadow = "";
        markerOptions = {icon:eIcon, zIndexProcess:importanceOrder};
        var marker = new GMarker(point, markerOptions);
        marker.importance = z;
}

Sorry for not linking to my code, I am just working locally so far.

On Sep 26, 2:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Sep 26, 10:07 am, gbaddorf <[EMAIL PROTECTED]> wrote:
>
> > I have a bunch of custom Markers on my map and they are overlapping,
> > which is fine, but I need to define which ones show up on front.
> > Currently I just build a icon and assign it to the markerOptions with
> > markerOptions = { icon:eIcon };
> > but I can't control which markers are on top.
> > I tried
> > markerOptions = { zIndexProcess:importanceOrder};
> > but that didn't do anything for me, plus then the markerOptions is not
> > set to eIcon.
>
> > I haven't seen any examples of doing both of these, is it possible and
> > what is the best way for me to set the Marker order?
>
> It is possible to specify multiple options in the GMarkerOptions
> object, it is just a javascript anonymous object.
> markerOptions = { icon:eIcon, zIndexProcess:importanceOrder};
>
> I haven't played with zIndexProcess so I can't help you much with that
> other than to point you at the 
> documentation:http://code.google.com/apis/maps/documentation/reference.html#GMarker...
> zIndexProcess
> Function
> This function is used for changing the z-Index order of the markers
> when they are overlaid on the map and is also called when their
> infowindow is opened. The default order is that the more southerly
> markers are placed higher than more northerly markers. This function
> is passed in the GMarker object and returns a number indicating the
> new z-index. (Since 2.98)
>
> Is ImportanceOrder a function? [we ask for a link to your map in the
> posting guidelines for a reason...]
>
>   -- Larry
>
>
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to