<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Dear All,</span></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div id="yiv2095034340"><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div><span>I got this problem: Error: uncaught exception: [Exception... "Component returned failure code: 0x8007000e (NS_ERROR_OUT_OF_MEMORY) [nsIDOMHTMLCanvasElement.height]" nsresult: "0x8007000e (NS_ERROR_OUT_OF_MEMORY)" location: "JS frame :: <a href="http://localhost/bma/kamap/htdocs/XMLOverlay/kaXmlOverlay.js" rel="nofollow" target="_blank">http://localhost/bma/kamap/htdocs/XMLOverlay/kaXmlOverlay.js</a> :: _BrowserIdent_setCanvasHW :: line
1551" data: no]</span></div><div><span></span> </div><div><span>the line xmloverlay are not shown when zoomed at the last scale of the map using this following scales ('scales' => array( 4,3,2,1,0.5,0.1,0.08,0.06,0.05,0.04,0.02,0.01 ), and ESPG 4326.</span></div><div> </div><div>using this algorithm:</div><div> function
hiliteLine(retval){<br> //alert(retval);<br> <br>if (retval!=null){<br>var a=retval.split('|'); <br>var aPoints = new Array();<br>for (p=0;p<a.length;p++){<br>var b=a[p].split(',');<br>aPoints[p] = new Array(parseFloat(b[0]),parseFloat(b[1]),p);<br>}<br> </div><div>//the function<br>if (<br>myXmlOverlay!=null){myXmlOverlay.remove();myXmlOverlay=null;}<br> printFlaglets (aPoints[0][0],aPoints[0][1],aPoints[aPoints.length-1][0],aPoints[aPoints.length-1][1]);<br> </div><div> myXmlOverlay = new kaXmlOverlay( myKaMap, 510); <br> var line =null;<br> var coordinates = "";<br> //xmlOverlayUseCanvas = false;//disable canvas use for
any compatibility problem<br> <br> for(i=0;i<aPoints.length;i++){<br> var latitude = aPoints[i][0];<br> var longuitude = aPoints[i][1];<br> <br> var pointId =
i;<br> var my_point =myXmlOverlay.addNewPoint(pointId, longuitude, latitude);<br> /*var my_symbol = new kaXmlSymbol();<br> my_symbol.size = 12;<br> my_symbol.color = '#ff0000';<br>
//my_point.setInnerHtml(aPoints[i][2]);<br> my_point.onmouseover = myPointClicked;</div><div> my_point.addGraphic(my_symbol);*/<br> <br> if (i>0) coordinates += ",";<br> coordinates += longuitude + " " + latitude;<br>
}<br> my_point = myXmlOverlay.addNewPoint("Line",longuitude, latitude);<br> alert(coordinates);<br> line = new kaXmlLinestring(my_point);<br> line.readCoordinates(my_point, coordinates);<br> line.color = 'red';<br> line.stroke = 4;<br> line.opacity=0.5; <br> my_point.addGraphic(line);<br>
<br> /*my_point = myXmlOverlay.addNewPoint("myPoly",longuitude, latitude);<br> poly = new kaXmlPolygon(my_point);<br> poly.readCoordinates(my_point, coordinates);<br> poly.color = 'green';<br> my_point.addGraphic(poly);*/<br>}<br>}</div><div> </div><div>map:</div><div>MAP<br> NAME mainmap<br># EXTENT [minx] [miny] [maxx] [maxy]. <br># EXTENT -137138 586244 1618910 2308935<br>EXTENT 100 13.45 101.32 13.99<br>#83.49609375 1.1864386394452024 118.5205078125 21.3303150734318<br> FONTSET
../etc/fonts.txt<br> IMAGECOLOR 139 166 188<br> INTERLACE TRUE<br> SYMBOLSET ../etc/symbols.sym<br> SHAPEPATH "../data"<br>IMAGETYPE png<br> INTERLACE OFF</div><div>OUTPUTFORMAT<br> NAME aggpng<br> DRIVER AGG/PNG<br> MIMETYPE "image/png"<br> ## transparency only with RGBA Image Mode<br> ## mapserver had to be compiled -with-experimental-png<br> IMAGEMODE RGBA<br> EXTENSION "png"<br> FORMATOPTION "QUANTIZE_FORCE=ON"<br> FORMATOPTION "QUANTIZE_COLORS=256"<br> FORMATOPTION "QUANTIZE_NEW=ON"<br> TRANSPARENT ON<br> end<br>OUTPUTFORMAT<br> NAME "png"<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE RGB<br> FORMATOPTION INTERLACE=OFF<br> TRANSPARENT OFF<br> EXTENSION "png"<br>END</div><div>OUTPUTFORMAT<br> NAME "png8"<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE
PC256<br> FORMATOPTION INTERLACE=OFF<br> TRANSPARENT OFF<br> EXTENSION "png"<br>END</div><div>OUTPUTFORMAT<br> NAME "jpeg"<br> DRIVER "GD/JPEG"<br> MIMETYPE "image/jpeg"<br> IMAGEMODE RGB<br> FORMATOPTION "QUALITY=70"<br> EXTENSION "jpg"<br>END</div><div>#<br># Image formats for AGG<br>#<br># OUTPUTFORMAT ### 24 bit PNG<br> # NAME 'agg_png'<br> # DRIVER AGG/PNG<br> # IMAGEMODE RGB<br># END</div><div># OUTPUTFORMAT ### 32 bit PNG with alpha channel from transparency<br> # NAME 'agg_pnga'<br> # DRIVER AGG/PNG<br> # IMAGEMODE RGBA<br># END</div><div># OUTPUTFORMAT ### 8 bit PNG<br> # NAME 'agg_png8' <br> # DRIVER AGG/PNG<br> # IMAGEMODE RGB<br> # FORMATOPTION "QUANTIZE_FORCE=ON"<br> # FORMATOPTION "QUANTIZE_DITHER=OFF"<br> # FORMATOPTION "QUANTIZE_COLORS=256"<br># END</div><div>#
OUTPUTFORMAT<br> # NAME 'agg_jpeg'<br> # DRIVER AGG/JPEG<br> # IMAGEMODE RGB<br># END</div><div><br>OUTPUTFORMAT<br> NAME GTiff<br> DRIVER "GDAL/GTiff"<br> MIMETYPE "image/tiff"<br> IMAGEMODE RGB<br> #FORMATOPTION "TFW=YES"<br> #FORMATOPTION "COMPRESS=PACKBITS"<br> EXTENSION "tif"<br>END</div><div>OUTPUTFORMAT<br> NAME imagemap<br> MIMETYPE "text/html"<br> FORMATOPTION SKIPENDTAG=OFF<br> DRIVER imagemap<br>END<br> SIZE 800 525<br> STATUS ON<br> TRANSPARENT TRUE<br> UNITS METERS<br>#PROJECTION<br>#"init=epsg:4326"<br>#"proj=longlat"<br>#"datum=WGS84"<br>#"ellps=WGS84"<br>#"no_defs"<br>#END<br>PROJECTION<br> "init=epsg:4326"<br> END</div><div> <br> WEB<br> </div><div> IMAGEPATH "/ms4w/tmp/ms_tmp/"<br> IMAGEURL "/ms_tmp/"</div><div><br> <br>
END</div><div>REFERENCE<br> COLOR -1 -1 -1 <br> EXTENT 91.87 4.57 112.01 21.73 <br># 83.49609375 1.1864386394452024 118.5205078125 21.3303150734318<br> IMAGE "images/reference.png"<br> OUTLINECOLOR 0 0 0<br> SIZE 120 90<br> STATUS ON<br> <br> <br> <br> END</div><div> </div><div><br>LEGEND<br> KEYSIZE 18 12<br> LABEL<br> TYPE BITMAP<br> SIZE MEDIUM<br> COLOR 0 0 89<br> END<br> STATUS OFF<br>END</div><div><br>SCALEBAR<br> STATUS off<br> TRANSPARENT off<br> INTERVALS 4<br> SIZE 200 3<br> UNITS meters<br> COLOR 250 250 250<br> OUTLINECOLOR 0 0 0<br> BACKGROUNDCOLOR 100 100 100<br> STYLE 0<br> POSTLABELCACHE true<br> LABEL<br> COLOR 0 0
90<br> #OUTLINECOLOR 200 200 200<br> SIZE small<br> END # Label<br>END # Reference<br> <br>QUERYMAP<br> STYLE HILITE<br> COLOR 0 0 0<br>END</div><div> SYMBOL<br> NAME 'circle'<br> TYPE ELLIPSE<br> POINTS 1 1 END<br> FILLED TRUE<br> END</div><div>############</div><div>#/////////////////province here<br> LAYER<br> NAME "province"<br>group "province"<br># CONNECTION "user=postgres dbname=rpmsii host=localhost port=5432 password=dohtu"<br># CONNECTIONTYPE POSTGIS<br># DATA "the_geom from province using unique gid using srid=4326"<br>DATA province<br>#PROJECTION<br>#"init=epsg:32647"<br>#"proj=utm"<br>#"zone=47"<br>#"a=6377276.345"<br>#"b=6366075.41314024"<br>#"units=m"<br>#"no_defs"<br> # END<br>
METADATA<br> "DESCRIPTION" "Thailand Provinces"<br> "RESULT_FIELDS" "province_name_t area prov_code"<br> END<br> TYPE POLYGON<br> STATUS ON<br> <br> #LabelItem "province_name_t" <br>CLASSITEM "gid" <br>CLASS<br> EXPRESSION "1"<br> TEMPLATE "parks.html"<br> NAME "31"<br> METADATA<br> END<br> STYLE<br> ANGLE 360<br> COLOR 206 254 135<br> OUTLINECOLOR 0 0 0<br> SIZE 1<br> SYMBOL 0<br> END<br>
END<br> .....</div></div></div></div></div></div></body></html>