Hexagon Geospatial
MENU

Developers Knowledge Base

GeoMedia, a comprehensive and dynamic GIS, extracts compelling intelligence from geospatial data and integrates it to present actionable information.
Showing results for 
Search instead for 
Do you mean 

Automation > Display Scale Independent Styles in the MapView

by Anonymous on ‎02-18-2016 12:23 PM - edited on ‎04-06-2016 12:47 PM by Moderator (510 Views)

Question

Using automation, can the user modify the styles of MapWindow legend entries to make them display scale independent?

Answer

You can set the styles for the legend entries in a mapview to be able to display scale independent by setting the StyleUnits property of each style object to be gmsStyleUnitsPaperAsNonscaling. So, you must set the StyleUnits property on each entry, like this:

 

For each objLE in Mapview.Legend.LegendEntries
     objLE.Style.StyleUnits = gmsStyleUnitsPaperAsNonscaling
Next

Overview
Contributors