Select to view content in your preferred language

Layer Popup not working

4898
8
01-19-2012 07:37 AM
StephanieSnider
Frequent Contributor
Verson 1.0.0.620
ArcGIS API for Silverlight 2.2.0.629
Windows Server 2003 R2, SP2

I have enabled pop-ups for a layer using the Silverlight Builder, but they do not show up in the published web app.  I have tried clicking on the layer symbols and just hovering over the symbols with no luck.  I have tried this in Mozilla Firefox (9.0.1) and Internet Explorer (9.0.8112.16421).  The popups do not show up. 

http://help.arcgis.com/en/webapps/silverlightviewer/help/#/Pop_Ups/017700000029000000/
On this page it says that I should have the option to select "Show pop-ups" by "on click" or "on hover".  But I do not see these options.  It just says "Enable pop-ups for this layer" and I have it checked.  In fact, my configuration window doesn't look like the one on the help document at all.  I don't have a config options for symbology, table or filter.

[ATTACH=CONFIG]11311[/ATTACH]

Any idea what could be causing this?

Stephanie
0 Kudos
8 Replies
KatherineDalton
Esri Regular Contributor
Hi Stephanie,

It looks like you have added a dynamic map service and are trying to configure pop-ups. This can certainly be done, but as you can see each individual layer contained within your map service is displayed in the pop-up configuration dialog and you have to enable pop-ups for each layer. For a dynamic map service, pop-ups are only enabled in on-click mode, not on-hover mode (See our Layer Types topic.)


Hope that helps,
Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
StephanieSnider
Frequent Contributor
Ok...so I need to add each individual layer instead of adding the whole map service.  I see now.  Yikes!  I have 97 layers in that map service.  Oh well.  Its still better than configuring each layer for popups writing html code with the flex viewer.

When adding a new operational layer, the browser alphabetizes the layer list.  This is not good.  It would be better to have the layers listed in the order that they appear in the map service.  Arg!
0 Kudos
KatherineDalton
Esri Regular Contributor
Well, you can still add the whole map service, its just that your overall configuration options are a bit more limited (although you can still configure pop-ups). The pop-up configuration flyout dialog you had in your screenshot just allows you to individually select each layer in the map service and enable or disable the pop-ups and configure other settings like the field alias. This is very similar to how you would configure the pop-up of a layer within a map service (as I'm sure you are finding out).

As for the list being alphabetized, can you clarify a bit for me? Are you saying that when you click the Browse button and then navigate to your map service in the Browse panel, that the listing of services/the listing of layers within the services are in alphabetical order? Or are you saying that once you add the map service itself to the map, the layers are reordered? The former is expected behavior; the latter is not. Please feel free to attach a screenshot.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
StephanieSnider
Frequent Contributor
When I add the entire map service and enable popups on several layers with that map service, the popups do not work in the resulting web application.  When I add just one layer within a map service and enable popups, they do work. 

I did mean that when I "click the Browse button and then navigate to your map service in the Browse panel, that the listing of services/the listing of layers within the services are in alphabetical order".  I guess as you say this is expected behavior.  I wish it was not since it makes things more difficult on my end - finding the layers in the order that I created the map service.
0 Kudos
JasonCleaver
Frequent Contributor
I agree. The pop-up functionality does not work.  I have a dynamic map service with three layers, and I checked "Show pop-ups for this layer" on all three layers.
0 Kudos
KatherineDalton
Esri Regular Contributor
Stephanie and Jason,

We haven't seen instances where pop-ups don't work in the published application for dynamic map services. I think I mentioned earlier that for dynamic map services you can only access the pop-ups in "on-click" mode, and not in "on-hover" mode. Does that help at all? Is there a chance either of you have a service I could use to take a look at? You can send me a private message on the forums if you like.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
JasonCleaver
Frequent Contributor
Here is an image of the configured pop-up for the dynamic map service.  When I click on the PriOH feature in the silverlight viewer, nothing happens.  This is an internal site, so the only way to show this is via a screen sharing session.

[ATTACH=CONFIG]19111[/ATTACH]
0 Kudos
KatherineDalton
Esri Regular Contributor
Hi Jason,

At this point I'd recommend that you contact our Technical Support as they'll be able to work with you directly and they have the proper environments in the case that you do need to share your screen/desktop.


Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos