mhoover12

Trying to Integrate 3.0 ClusterLayer

Discussion created by mhoover12 on Jun 29, 2012
Latest reply on Sep 7, 2012 by zliu_esri17
Hello,

I'm trying to integrate the new ClusterLayer sample introduced at 3.0 (http://help.arcgis.com/en/webapi/javascript/arcgis/demos/layers/layers_point_clustering.html) into my application but I'm having some problems with the dojo.require statement.

So, I've included the dojo.require("extras.Clusterlayer"); statement in my Default.aspx page.  But when I try to load my application with that statement included, it fails to load...I just end up with a blank page.  Then I saw this code in the sample:

<script>
var dojoConfig = {
parseOnLoad: true,
packages: [{
"name": "extras",
"location": location.pathname.replace(/\/[^/]+$/, '') + "/extras"
}]
};
</script> 


So I included it in mine and still nothing.  I realized the "location" property's pathname was probably incorrect, but I've tried everything I can think of, including setting "location" to "help.arcgis.com/en/webapi/javascript/arcgis/demos/layers/extras" which I assume is what it must be in the sample but no dice.

Can anyone instruct me on what I'm doing wrong here?  Thanks!

Outcomes