Package de.yaams.extensions.basemap.tiled.core

Examples of de.yaams.extensions.basemap.tiled.core.Map.removeLayer()


    Map map = editor.getCurrentMap();
    int layerIndex = editor.getCurrentLayerIndex();
    int totalLayers = map.getTotalLayers();

    if (layerIndex >= 0) {
      map.removeLayer(layerIndex);

      // If the topmost layer was selected, the layer index is invalid
      // after removing that layer. The right thing to do is to reset it
      // to the new topmost layer.
      if (layerIndex == totalLayers - 1) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.