[Users] GeoExt breaks OpenLayers Heatmap

julia paredes japr94 at hotmail.com
Tue Jun 19 21:46:56 CEST 2012


Hi all, 
I'm using GeoExt to create a tree node structure for my layers, and I'm using the following heatmap script: http://www.websitedev.de/temp/openlayers-heatmap-layer.htmlThe heatmap functionality breaks in my application when I add this script  /ext-3.4.0/adapter/ext/ext-base-debug.js", without making any other changes to my code.

It seems that the points are displaying correctly, is just the colour that is not showing properly. Instead of showing the colours, everything is displayed in black with the correct intensity.This is the error that I'm getting: 
Uncaught TypeError: Cannot read property 'x' of null OpenLayers.js:516OpenLayers.Map.OpenLayers.Class.getPixelFromLonLatOpenLayers.js:516OpenLayers.Map.OpenLayers.Class.getLayerPxFromLonLatOpenLayers.js:519Heatmap.Layer.OpenLayers.Class.moveToHeatmap.js:252OpenLayers.Map.OpenLayers.Class.moveToOpenLayers.js:498OpenLayers.Map.OpenLayers.Class.setCenterOpenLayers.js:473OpenLayers.Map.OpenLayers.Class.updateSizeOpenLayers.js:464(anonymous function)

The line  in the heatmap.js that is pointed in the error list does this var pos = this.map.getLayerPxFromLonLat(src.lonlat);var x = pos.x - rad + offsetX;var y = pos.y - rad + offsetY;

Any idea of what is causing this problem?
Thanks in advance,
Julia

 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120619/40456937/attachment.htm 


More information about the Users mailing list