String SVGpath = "C:/maps/map.svg"; IlvSVGDataSource source = new IlvSVGDataSource(SVGpath); source.setManager(getView().getManager()); source.setDestinationBounds(lonMinRad,latMinRad,lonMaxRad,latMaxRad);
source.start(); IlvMapLayerTreeNode node = mapLayer.getNode(); for (int i = 0; i < node.getChildCount(); i++) { IlvMapLayerTreeNode child=(IlvMapLayerTreeNode) node.getChildAt(i); IlvMapLayer childLayer = (IlvMapLayer) node.getUserObject(); ... do something with child layer }
style.setAttribute(IlvMapStyle.VISIBLE_IN_VIEW,Boolean.TRUE);
style.setVisibleInView(true);
StyleListener listener = new StyleListener() { public void styleChanged(StyleEvent event) { if(IlvMapStyle.ALPHA.equals(event.getAttribute())) { // ... do something when transparency changes } } }; ... myStyle.addStyleListener(listener);
IlvMapLayerTreeModel ltm = IlvMapLayerTreeProperty.GetMapLayerTreeModel(manager); ltm.addChild(parentLayer, layer); IlvMapStyle parentStyle = layer.getParent().getStyle(); IlvMapStyle childStyle = layer.getStyle(); childStyle.setParent(parentStyle);
Property name |
Contents |
---|---|
VISIBLE_IN_VIEW |
Indicates whether the IlvManagerLayer is displayed on the map view. |
VISIBLE_IN_OVERVIEW |
Indicates whether the IlvManagerLayer is displayed on the map overview. |
ATTRIBUTE_INFO |
Contains the IlvAttributeInfoProperty used
to describe all object properties. This is used to provide the list
of possible property names displayed in the label attribute check
box. This attribute cannot be changed by the user in the map layer
tree panel. |
LABEL_ATTRIBUTE |
Contains either a null value, or the name
of the property used when labeling this map layer (chosen usually
in the list provided by the ATTRIBUTE_INFO attribute). |
ALWAYS_ON_TOP |
Indicates whether the attached map layer is
placed on a normal or superimposing plane. This should be used only
for overlay layers such as grids, labels, measures, and so on. |
LEGEND_GROUP |
A logical name, used and displayed to group
map layers in the legend. |
CATEGORY |
An identifying name to group more than one
layer on the same legend line. |
ALPHA |
The level of transparency of the manager layer. |