Hi,

There was a recent change to the 4.0 API that deprecated the "IndexOfLayer"
on the runtime map.

        Int32 iLayerPos = rtMap.IndexOfLayer( rtLayer);

I used this with the "IndexOfLayer( RunTimeMapLayer layer)"

There does not appear to be a direct update for this with the new
rtMap.Layers object which supports a string name or integer index.

Do I have to use something like this:

        Layers.GetByObjectId(rtLayer.ObjectId)

Or rewrite logic?

 Thanks - Crispin


-----
linknode.co.uk 
--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MaestroAPI-IndexOfLayer-with-RuntimeMaplayer-tp7054187p7054187.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to