[OpenLayers-Dev] ArcXML support

stegch at web.de stegch at web.de
Mon Apr 27 09:39:24 EDT 2009

Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

I tried to test ArcXML support for OpenLayers. It's great that ArcXML works, but there are many restrictions. For example there's no SIMPLERENDERER in ArcXML.js, which could be added very easily: <o:p></o:p>

<o:p> </o:p>

 addSimpleRenderer: function(renderElem, renderer) {<o:p></o:p>

 var keys_simplerenderer = [<o:p></o:p>

 'gradient', 'hashline', 'rasterfill', 'rastermarker', 'simpleline', 'simplemarker', <o:p></o:p>

 'simplepolygon', 'truetypemarker' <o:p></o:p>


 var keys_attributes = [<o:p></o:p>

 'angle', 'anglefield', 'antialiasing', 'boundary', 'boundarycaptype', 'boundarycolor', <o:p></o:p>

 'boundaryjointype', 'boundarytransparency', 'boundarytype', 'boundarywidth', 'captype', <o:p></o:p>

 'character', 'color', 'fillcolor', 'fillinerval', 'filltransparency', 'filltype', 'finishcolor', <o:p></o:p>

 'font', 'fontcolor', 'fontsize', 'fontstyle', 'glowing', 'hotspot', 'image', 'interval', <o:p></o:p>

 'jointype', 'linethickness', 'outline', 'overlap', 'rotatemethod', 'shadow', 'size', <o:p></o:p>

 'startcolor', 'tickthickness', 'transparency', 'type', 'url', 'usecentroid', 'width'<o:p></o:p>


 var symbol = renderer.symbol;<o:p></o:p>

 for (var i=0, len=keys_simplerenderer.length; i<len; i++) {<o:p></o:p>

 var key = keys_simplerenderer[i];<o:p></o:p>

 if(symbol.type == key) {<o:p></o:p>

 var selem = this.createElementNS("", key.toUpperCase() + "SYMBOL");<o:p></o:p>

 for (var j=0, len=keys_attributes.length; j<len; j++) {<o:p></o:p>

 var key = keys_attributes[j];<o:p></o:p>

 renderElem.appendChild(selem); <o:p></o:p>

 if (symbol[key]) {<o:p></o:p>

 selem.setAttribute(key, symbol[key]);<o:p></o:p>






<o:p> </o:p>

Or is there any possibility to send an ArcXML string directly to ArcIMS?<o:p></o:p>

<o:p> </o:p>

Furthermore, I think that there could be a little bug inside VALUEMAPLABELRENDERER, because "symbol" is undefined in line 560 in ArcXML.js. It should be declared as "var symbol = exact.symbol;"

Thank you for your answer.




Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? 
Der kann`s mit allen: *http://www.produkte.web.de/messenger/?did=3123* [http://www.produkte.web.de/messenger/?did=3123] 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20090427/8ea0e507/attachment.html

More information about the Dev mailing list