Point Clustering with a customer layer

2353
5
06-19-2012 10:09 AM
WeipingZeng
New Contributor II
The point clustering with a customer layer is a new sample in version 3.0. But it seems that the codes do not work. I downloaded the source and associated codes (see the url below) and put them on C:\inetpub\wwwroot folder. Unlike the live sample, the codes show only a base map without any points. Did I miss something?

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_point_clustering.html

http://www.arcgis.com/home/item.html?id=4174dcae65bf42e1b776c17da4b279c1
0 Kudos
5 Replies
derekswingley1
Frequent Contributor
The data used for clustering is in a .json file. Is your IIS instance configured to serve JSON?
0 Kudos
AbdelGomez_Perez
New Contributor
I downloaded the whole zip, uncompressed it and it works fine but ONLY in Safari. I am getting a bunch of errors on Firebug when I tried to load it on Firefox and in Chrome it just doesn't show. I need some help here too!!! Thanks in advance!
0 Kudos
derekswingley1
Frequent Contributor
What are the specific errors you're seeing? Do you see the same errors when you load the copy of the sample we host:  http://help.arcgis.com/en/webapi/javascript/arcgis/demos/layers/layers_point_clustering.html
0 Kudos
AbdelGomez_Perez
New Contributor
Browsers tested:
�?� Safari Version 5.1.7 (7534.57.2)
�?� Google Chrome Version 19.0.1084.56
�?� Mozilla Firefox Version 13.0.1

The tests were run on Mac OS X v. 10.7.4 and Windows 7 Professional Service Pack 1.

I was actually trying to load the layers_point_clustering.html file contained in the unzipped esri_js_api_clustering_sample package available in the samples (unmodified). Only Safari was capable of showing the map. Running Firefox with the Firebug plugin reported the following error:

Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.0 :: <TOP_LEVEL> :: line 15"  data: no]
http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.0
Line 15

On the other hand, when I uploaded the files to my apache repository and opened the HTML, the maps displayed correctly in all the browsers.

Thanks for the quick response.

PS: And I have no issues when loading the hosted sample
0 Kudos
derekswingley1
Frequent Contributor
I think your latest testing points to an issue with your web server. Again, I would check that your IIS instance is configured to serve JSON.
0 Kudos