Timeline for Creating feature layer in InMemoryWorkspace using ArcObjects?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 15, 2016 at 4:49 | comment | added | Michael Stimson | It's easy to create a feature layer (IFeatureLayer) and add it to the map, you don't need to store it anywhere, if you only want to copy certain features then copy to your InMemoryWorkspace and create a layer from that. Just remember if you turn on scale symbols you must also set the reference scale for the map IMap::ReferenceScale or the ScaleSymbols property is meaningless. | |
Aug 12, 2016 at 13:44 | comment | added | Jeff Dege | I'm saying that the dimension in map units is constant. If I draw with a size of 25 on a foot-dimensioned map, the marker is 25 feet across, which renders as a varying number of pixels depending upon the map zoom level. What I want is a constant number of pixels independent of map zoom. I was told this wasn't possible with IGraphicsContainer, and I needed to create a FeatureLayer with ScaleSymbols turned off. | |
Aug 11, 2016 at 21:59 | comment | added | Kirk Kuykendall | Are you saying the dimensions in pixels for the symbol changed, or was constant? | |
Aug 11, 2016 at 14:14 | comment | added | Jeff Dege | I tried that, but the markers scaled to the map - they drew at a fixed size relative to the map, and scaled in size as the map zoomed in and out. | |
Aug 11, 2016 at 13:59 | comment | added | Kirk Kuykendall |
Typically this is done using IGraphicsContainer to add IMarkerElement s to the map. See "Add Graphic to Map" here
|
|
Aug 11, 2016 at 13:42 | comment | added | Jeff Dege | What I want is the ability to place markers and labels on the map at set locations, at a fixed size, independent of the zoom level of the map. And I need the locations of these markers and labels is determined by code, rather than in a geodatabase, shapefile, etc. | |
Aug 10, 2016 at 22:58 | history | answered | Kirk Kuykendall | CC BY-SA 3.0 |