ngageoint / geoq

Django web application to collect geospatial features and manage feature collection among groups of users
MIT License
704 stars 133 forks source link

Handling of ESRI service for CAP images is not dynamic #270

Open jkeller2 opened 10 years ago

jkeller2 commented 10 years ago

It looks like leaflet_helper.parsers.js is hard-coded for the ImageEvents service with hard-coded attributes and static icons. This should be updated to dynamically support this type of layer as the ImageEvents layer may change over time, and any additional ESRI layers should be supported.

Icons should be loaded dynamically via the ESRI API and which attributes to use for a popup text/image should be some sort of extended parameter when adding the layer to make this capability more flexible.

Similar results could be accomplished in two different ways:

  1. Use the ESRI map service to add image tiles to the map, then use the ESRI identify or query service to identify and build the popup on each map click.
  2. Use the ESRI query service to query for each feature in the display, parse the results for the icons and other attributes then generate a selectable layer without having to run identify on each map click

ESRI appears to use option 1 in their standard web map template