Select to view content in your preferred language

Error messages and Items Missing in Legend

1249
5
03-02-2012 06:53 AM
LisaShertz
Occasional Contributor
Yesterday I opened a web mapping application that I had made back in December. It had worked perfectly then. I am now getting an error message when I open the application. Actually I get a different messages when I open it in Chrome and when I open it in IE8.

Chrome: Unable to create map: Cannot call method 'toRgba' of null

IE8: Unable to create map: "'color' is null or not an object"

I then click the OK button and the map opens. I am using the Chrome with legend template and the legend is incomplete. It shows the one line layer, three of the polygon layers and none of the point layers. When I go to turn layers on and off it will draw all layers but one, zoning.

When I open the web map all visible layers are shown in the legend. The zoning layer does not draw here either.

All the map layers are from a map service from ArcGIS Server. There are no raster layers. I re-published the service this morning. I made a new web mapping application this morning and it had the same behaviors.


Web mapping application:
http://apps.arcgis.com/hosted/OnePane/basicviewer/index.html?appid=4a73aa59a68a494db4b7c3386aca534d

Web map:
http://www.arcgis.com/home/webmap/viewer.html?webmap=eecf1dfef0c547d193e3a0dc5d87506b

Map service:
https://secure.ci.longmont.co.us/ArcGIS/rest/services/Planning/StVrainCorridor/MapServer


Thanks.

Lisa Shertz
Tags (2)
0 Kudos
5 Replies
MikeMinami
Esri Notable Contributor
The zoning layer doesn't draw because the Shape field is hidden. You need to make this field visible in the service.

One question for you...why have you authored your map with the individual layers, rather than the entire map service? For example, you are adding a layer using the URL to the specific layer, like this:

"https://secure.ci.longmont.co.us/ArcGIS/rest/services/Planning/StVrainCorridor/MapServer/10"

rather than the whole map service with all its layers, like this:

"https://secure.ci.longmont.co.us/ArcGIS/rest/services/Planning/StVrainCorridor/MapServer"

The error message you are seeing when displaying the web application is a bug that we'll need to address. Thanks. If you add all the layers in the whole map service, you won't see this error.

Thanks,

Mike
0 Kudos
LisaShertz
Occasional Contributor
Mike,

...the SHAPE field is hidden. 

Thanks, I usually catch that one.

...individual layers, rather than the entire map service?

I brought in each layer separately because I wanted to be able to control the symbology, transparency, and visibility for each layer. It seemed easier through ArcGISOnline rather than re-publishing for every tweak to the map. Also I need to give the end user the ability to turn on and off each of the layers. That is the primary feature of this map, to see different configurations of the layers.

...a bug that we'll need to address.

That is interesting, because I haven't changed this application since I first made it at the end of December. I wasn't getting any errors then.

Thanks for the info.

Lisa Shertz
0 Kudos
LisaShertz
Occasional Contributor
I also forgot to mention, when I go to config the app I am getting a 404 error. Any ideas?

Thanks.

Lisa Shertz
0 Kudos
MichaelKlein
Emerging Contributor
I'm also having problems with my ArcGIS Online web mapping application

http://www.arcgis.com/apps/OnePane/basicviewer/index.html?appid=5822b2aeee7a43c8a7fbba85a392de2e

http://apps.arcgis.com/hosted/OnePane/basicviewer/index.html?appid=5822b2aeee7a43c8a7fbba85a392de2e

The layers won't display and the "menu bar" seems messed up.  Only the Print option shows.

The web map behind the application seems fine.  When trying to configure the application I get an error that states, "... We're sorry the page you're looking for can't be found."

The application worked fine in December when I first created it.
0 Kudos
MikeMinami
Esri Notable Contributor
Michael,

The application seems to work for me. Try aggressively clearing your browser cache (i.e., clear out all temporary files, cookies, everything for all time).

Thanks,

Mike
0 Kudos