Giter Club home page Giter Club logo

mapapps-enhanced-selection's Introduction

Enhanced Selection

The Enhanced Selection Bundle allows you to select features in enhanced ways. There are these six special types of selection:

  • Area Selection
  • Freehand Polygon
  • Polygon
  • Existing Graphic
  • Current Extent
  • Distance
  • Travel Time
  • Search Selection

freehand polygon selection

distance selection

Installation Guide

Configurable Components:

BaseWidget:

Enable Bundle in app.json

"load" : {
   // ...
   "allowedBundles": [
       "dn_enhancedselection",
       // ...
   ]
}

Then check if you can choose it in Live Configuration / Extended Configuration.

To add the layer to one of the toolbars open Up

Live Configuration / Extended Configuration / Toolset (toolset) / Components / ToolsetManager

and add dn_enhancedselectionToggleTool to any tools array (depending on where you want to place the button)

Basic Settings

"BaseWidget": {
  "enableContains": true
}
BaseWidgetController:

Basic Settings

"BaseWidgetController": {
  "clearGraphics": true
}
SrWidgetFactory:

Define selectable stores

"SrWidgetFactory": {
  "storeIds": [
    "%STORE_ID1%",
    "%STORE_ID2%",
    ...
  ]
}
SelectFeatureFromLayerController:

Define selectable stores

"SelectFeatureFromLayerController": {
  "widgetEnabled": true,
  "storeIds": [
    "%STORE_ID1%",
    "%STORE_ID2%",
    ...
  ]
}
FreehandPolygonController
"FreehandPolygonController": {
  "widgetEnabled": true
}
PolygonController
"PolygonController": {
  "widgetEnabled": true
}
ExistingGraphicController
"ExistingGraphicController": {
  "widgetEnabled": true
}
CurrentExtentController
"CurrentExtentController": {
  "widgetEnabled": true
}
DistanceCircleController:
"DistanceCircleController": {
  "widgetEnabled": true,
  "distance": {
    "minimum": 0,
    "maximum": 1000,
    "defaultStart": 0,
    "defaultEnd": 500,
    "interval": 50,
    "unit": "KILOMETERS"
  }
}
DriveTimeController
"DriveTimeController": {
  "widgetEnabled": true,
  "geoprocessorUrl": "http://logistics.arcgis.com/arcgis/rest/services/World/ServiceAreas/GPServer/GenerateServiceAreas",
  "drivetime": {
    "minimum": 0,
    "maximum": 30,
    "interval": 1
  }
}
SearchSelection
"SearchSelectionController": {
   "widgetEnabled": true
},

You can activate or deactivate all widgets by setting "widgetEnabled" to true or false.

To change the order of selection types you can change the Service-Ranking:

"SelectFeatureFromLayerWidget": {
  "Service-Ranking": -1
},
"FreehandPolygonWidget": {
  "Service-Ranking": -2
},
"PolygonWidget": {
  "Service-Ranking": -3
},
"ExistingGraphicWidget": {
  "Service-Ranking": -4
},
"CurrentExtentWidget": {
  "Service-Ranking": -5
},
"DistanceCircleWidget": {
  "Service-Ranking": -6
},
"DriveTimeWidget": {
  "Service-Ranking": -7
}

Development Guide

Define the mapapps remote base

Before you can run the project you have to define the mapapps.remote.base property in the pom.xml-file: <mapapps.remote.base>http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%</mapapps.remote.base>

Other methods to to define the mapapps.remote.base property.
  1. Goal parameters mvn install -Dmapapps.remote.base=http://%YOURSERVER%/ct-mapapps-webapp-%VERSION%

  2. Build properties Change the mapapps.remote.base in the build.properties file and run: mvn install -Denv=dev -Dlocal.configfile=%ABSOLUTEPATHTOPROJECTROOT%/build.properties

mapapps-enhanced-selection's People

Contributors

bartrail avatar dpayk avatar matthiasstein avatar sarahlechler avatar slim01 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

linperez bartrail

mapapps-enhanced-selection's Issues

Select single feature out of an enhanced selection is not possible

Right now, it is not possible to click through the selected features and get information from the result center similar to the selection bundle. In the selection bundle in combination with the result center bundle the user can click on a single feature (for example out of the freehand polygon selection) and the selected feature is highlighted in the result center. For the user it would be nice to have a similar behavior for the enhanced selection.

Printing selected features

Reproduction

  • Try to print selected features with the agsprinting bundle.
  • Selection is cleared when the agsprinting tool will be enabled.

Possibility to delete the "within" option

It is known that distance selection doesn't work correctly in combination with the spatial relationship "within". Is it possible to delete this option in the app.json?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.