Select to view content in your preferred language

Popup not showing for wrapped map

912
4
09-24-2012 02:33 PM
CurtisChin
Deactivated User
I am displaying some data on a map using the ClusterLayer from ArcGIS Javascript examples.
The map is created with those options
        map = new esri.Map("map", {
            extent: initExtent,
            infoWindow: popup,
            "fadeOnZoom": true,
            "force3DTransforms": true,
            "navigationMode": "css-transforms",
            "slider": true,
            "nav": false,
            "wrapAround180": true
        });


where the popup is created like this:
var popup = new esri.dijit.Popup(null, dojo.create("div"));


The cluster layer is created using this code:

            var popupTemplate = new esri.dijit.PopupTemplate({
                description: "{description}"
            });

            // cluster layer that uses OpenLayers style clustering
            clusterLayer = new extras.ClusterLayer({
                "data": photoInfo.data,
                "distance": 50,
                "id": "clusters",
                "labelColor": "#fff",
                "labelOffset": 10,
                "resolution": map.extent.getWidth() / map.width,
                "singleColor": "#888",
                "singleTemplate": popupTemplate
            });


When the map is displayed I can click on a cluster and the popup appears correctly.
If I slide (wrap?) the map far enough to the left I can see the point representing a cluster disappear to the left
and appear to the right at the correct position. But if I click on the point at this time the popup
doesn't appear or it appears on the far left side of the map. Basically the popup appears
to be associated with the old position of the cluster and it doesn't get updated with the new
position after the map wraps around.

Could this be a misconfiguration on my part or is there a bug in the ClusterLayer?
0 Kudos
4 Replies
StephenLead
Honored Contributor
Could this be a misconfiguration on my part or is there a bug in the ClusterLayer?


I think it could be a bug in the popup itself, irrespective of the cluster layer.

I can reproduce the problem in this Popup sample, by opening the popup, closing it, then scrolling around the world so that San Francisco appears from the other side. Clicking a feature again opens the popup in the first location.

I clicked on the right-hand side of the map, but the popup appears in the left-hand side of the map:

[ATTACH=CONFIG]17944[/ATTACH]

Steve
0 Kudos
CurtisChin
Deactivated User
Can somebody from ESRI comment on this? Do I need to open a ticket?
0 Kudos
derekswingley1
Deactivated User
I'm planning to look at this later this afternoon and will post back later today.
0 Kudos
derekswingley1
Deactivated User
Please open a ticket, this looks like a bug.
0 Kudos