[mapguide-users] MaestroAPI - IndexOfLayer with RuntimeMaplayer

Crispin_at_Linknode crispin.hoult at linknode.co.uk
Fri Dec 2 05:19:10 EST 2011


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.


More information about the mapguide-users mailing list