ESRI.ArcGIS.ADF.Local
m_mapSpatialRef Field
See Also  Send Feedback
ESRI.ArcGIS.ADF.BaseClasses Namespace > BaseCustomGlobeLayer Class : m_mapSpatialRef Field




Store the maps's spatial reference. Set by ILayer::SpatialReference.

Syntax

Visual Basic (Declaration) 
Protected m_mapSpatialRef As ISpatialReference
Visual Basic (Usage)Copy Code
Dim instance As BaseCustomGlobeLayer
Dim value As ISpatialReference
 
value = instance.m_mapSpatialRef
 
instance.m_mapSpatialRef = value
C# 
protected ISpatialReference m_mapSpatialRef

Remarks

This spatial reference is set by the map. In order to support reprojection on the fly, you should make sure that both class members m_spatialRef and m_mapSpatialRef are not null and that each member holds different spatial reference (you can check that the factory code is different). Then you can use method IGeometry.Project in order to reproject your geometries when the layer draw.

See Also

© 2010 All Rights Reserved.