[Users] {SpamScore: ssss} GeoExt breaks OpenLayers Heatmap

dan at inlet.geol.sc.edu dan at inlet.geol.sc.edu
Wed Jun 20 02:09:40 CEST 2012


What browser are you using. It seems to work in Firefox, or at least I am
not seeing any errors.

Dan
>
> 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
>
>  		 	   		   		 	   		  _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list