Select to view content in your preferred language

Label feature with text for printing

547
3
02-15-2019 09:17 AM
by Anonymous User
Not applicable

Here is the scenario.

A user uses the add data widget to add a .csv.

The user can seclect a newly added point and show the attributes in a pop up.

How do we create a label (text) that shows the attributes of a selected point so that the map can be printed with the newlt added labels?

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Scott,

  So is your scenario that you want to label all csv points that have been added with all their attributes? If so that could get very messy. 

0 Kudos
by Anonymous User
Not applicable

It could, so I was hoping that the user could select a point and add the attributes for that point only, or a couple of points at the users discretion.

This would be very valuable for other layers as well.

Scott Foster

GIS Specialist

Pipelines & Terminals

Direct: (210)-345-5198

Cell: (713)-240-7770

Email: scott.foster@valero.com<mailto:scott.foster@valero.com>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Scott,

   That is where this is going to get pretty involved. There is no out of the box selection of features in the map ability without custom widget development. So the first part would be to handle the selection of the points. Your custom widget would have to use the drawBox jimu dijit to draw a graphic on the map to allow for a query of the featureLayer that was added to the map with the csv results. Then once the featureLayer.queryFeatures method is done the selected points would need to be looped over and the geometry of the selected features would be added to a new GraphicsLayer in the map and the symbol of those graphics would have to be a TextSymbol with the attribute values. Placement and multiple attributes would be the main issue. This is going to be a fairly involved development effort.

0 Kudos