Skip to content

Open Layers

AndreasWBartels edited this page Sep 30, 2016 · 7 revisions

GUI

Viewer

Open Action

Menu -> File -> Open or Toolbar Open

Supported Layer formats: Shapefile, flml-files, Worldfiles, MBTiles, ARCInfo ASCI Grid, Saga Grid and XYZ Grid file

Open URL Action

Menu -> File -> Open URL

See Layer URL for URL syntax.

Drag and Drop

see Open Action for supported formats

Scripting

package net.anwiba.script.groovy
import net.anwiba.scripting.api.groovy.JGISShellGroovyScript;
@groovy.transform.BaseScript JGISShellGroovyScript facade

def title = "layer name";
def url = "{url}";

facade.map()
      .add( title
          , facade.layerReference(url)
          );

See Layer URL for URL syntax.