Select to view content in your preferred language

Local Shape file info popup

2807
5
10-14-2015 04:39 AM
rexC
by
Emerging Contributor

Hi

I am trying to load a shapefile on locallayer. I would like to select a feature from the loaded map (symbol/polygon/line etc) by clicking the mouse and highlight it. Is it possible to launch the infopopup dialog with the feature details ?

Thanks and Regards

0 Kudos
5 Replies
EricBader
Honored Contributor

Hi Rex,

Nope, won't work yet. You can probably roll your own way of selecting a feature, getting the attributes you need from the feature, then popping up a report of the values for the end user. But, this will be achievable in the next major release of the API, Quartz.

0 Kudos
rexC
by
Emerging Contributor

Thanks Eric,

I am able to manage it with HitTest on the feature layer and querying the feature details.

Meanwhile I have another issue with the same sample (ShapefileApp). The Coasts.shp and mjrroads.shp files are not getting displayed. Is there something i am missing ??

0 Kudos
EricBader
Honored Contributor

Is your local server initializing ok? If that hiccups somewhere, the files won't display. Let us know

0 Kudos
rexC
by
Emerging Contributor

Yes, Infact I am able to display the Continents shape file without any problem.

0 Kudos
EricBader
Honored Contributor

Sorry. Forgive me for my local server question, of course you're reading the shapefile with ShapefileFeatureTable, not LocalServer fortunately.

Make sure your renderer is explicitly defined, or the shapefile will not display on the map.

0 Kudos