Esri/heatmap-layer-js won't display across dateline

7850
10
Jump to solution
07-29-2014 05:50 AM
by Anonymous User
Not applicable

I'm using the Esri/heatmap-layer-js  by Matt Driscoll and have noticed that it does not render across the international dateline. 

To see this behavior in the sample, zoom out from San Francisco to the world and pan west or east across the dateline and continue to San Francisco.  In Firebug I can see the data is being queried, but it simply is not being rendered.

Is this expected behavior?  In my use case I have world wide data (v.s. a small area like San Francisco) so need to have continuous display across the dateline.

0 Kudos
10 Replies
by Anonymous User
Not applicable

Yes, I think the failure to normalize the extent is playing a part in both situations.

I've noticed that the esri/geometry/webMercatorUtils module can be used to normalize geometries by converting them from web mercator to geographic and then back again.  Normalization appears to be included. 

webMercatorUtils.geographicToWebMercator((webMercatorUtils.webMercatorToGeographic(map.extent)));

0 Kudos