<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Ok, I actually am getting the error. What is happening is the this.map.getLayerPxFromLonLat(someLoc) call is returning null, however you are trying to access the x member as if something valid were returned. You need to check the return values of the functions before trying to use them. I'm not sure why the ext-base.js addition has any effect though.</div><div><br></div><div>Dan</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> julia paredes <<a href="mailto:japr94@hotmail.com">japr94@hotmail.com</a>><br><span style="font-weight:bold">Date: </span> Wed, 20 Jun 2012 00:23:22 +0000<br><span style="font-weight:bold">To: </span> Dan Ramage <<a href="mailto:dan@inlet.geol.sc.edu">dan@inlet.geol.sc.edu</a>><br><span style="font-weight:bold">Cc: </span> geoext <<a href="mailto:users@geoext.org">users@geoext.org</a>><br><span style="font-weight:bold">Subject: </span> RE: {SpamScore: ssss} [Users] GeoExt breaks OpenLayers Heatmap<br></div><div><br></div><div><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style><div class="hmmessage"><div dir="ltr"><br>I tried Firefox, ie 9 , safari , and chrome, and I get the same result in all of them.<div>I added a single point using the heatmap script and without adding the ext-base.js and I get the right gradients of colours, from blue to red. But as soon as I add the ext-base.js the points are shown in black</div><div><br></div><div><br><div><div id="SkyDrivePlaceholder"></div>> Date: Tue, 19 Jun 2012 20:09:40 -0400<br>> Subject: Re: {SpamScore: ssss} [Users] GeoExt breaks OpenLayers Heatmap<br>> From: <a href="mailto:dan@inlet.geol.sc.edu">dan@inlet.geol.sc.edu</a><br>> To: <a href="mailto:japr94@hotmail.com">japr94@hotmail.com</a><br>> CC: <a href="mailto:users@geoext.org">users@geoext.org</a><br>> <br>> What browser are you using. It seems to work in Firefox, or at least I am<br>> not seeing any errors.<br>> <br>> Dan<br>> ><br>> > Hi all,<br>> > I'm using GeoExt to create a tree node structure for my layers, and I'm<br>> > using the following heatmap script:<br>> > <a href="http://www.websitedev.de/temp/openlayers-heatmap-layer.htmlThe">http://www.websitedev.de/temp/openlayers-heatmap-layer.htmlThe</a> heatmap<br>> > functionality breaks in my application when I add this script<br>> > /ext-3.4.0/adapter/ext/ext-base-debug.js", without making any other<br>> > changes to my code.<br>> ><br>> > It seems that the points are displaying correctly, is just the colour that<br>> > is not showing properly. Instead of showing the colours, everything is<br>> > displayed in black with the correct intensity.This is the error that I'm<br>> > getting:<br>> > Uncaught TypeError: Cannot read property 'x' of null<br>> > 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<br>> > function)<br>> ><br>> > The line in the heatmap.js that is pointed in the error list does this<br>> > var pos = this.map.getLayerPxFromLonLat(src.lonlat);var x = pos.x - rad +<br>> > offsetX;var y = pos.y - rad + offsetY;<br>> ><br>> > Any idea of what is causing this problem?<br>> > Thanks in advance,<br>> > Julia<br>> ><br>> >                                                                                       _______________________________________________<br>> > Users mailing list<br>> > <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>> > <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>> ><br>> <br>> <br></div></div>                                            </div></div></div></span></body></html>