wmbeers / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
1 stars 2 forks source link

Layer names for feature layers is defaulting to layer ID in legend for printed maps #65

Closed wmbeers closed 3 years ago

wmbeers commented 3 years ago

Description:

The legend in printed map has the wrong title for feature layers, something like "graphicLayer4", rather than the proper title.

Steps to reproduce:

  1. Add layers to map (follow steps below or just load this map: https://preprod.fla-etat.org/est/secure/map/?loadMap=481) 1.1 Use the Layer Browser to add a single feature layer to the map (Add Layer to Map) 1.2. Use the Layer Browser to add the map service the feature layer is in (Add All to Map) 1.3. Make sure both the layer loaded individually, and the layer loaded as part of a service are toggled visible 1.4. Zoom into an extent that causes the map 1.5. Turn off all other layers
  2. Print the map

Expected results:

Printed map shows same title for both

Actual results:

Printed map shows correct title for layer loaded via service (step 1.2), but incorrect title like "graphicsLayer4" for feature layer (step 1.1)

See also: https://repo.fla-etat.org/bugzilla/show_bug.cgi?id=5864