Hello,<br><br>The ArcXML implementation is incomplete, yes. I wrote it to support basic thematic mapping, and I can add other renderers as folks need them. Although, it looks like you added a simple renderer below -- probably filing a patch would be the fastest way to get it in to ArcXML.<br>
<br>It's definitely possibly to send ArcXML directly to ArcIMS, although I would like to see more of the spec implemented in the format itself first.<br><br>-Zwarg<br><br><div class="gmail_quote">On Mon, Apr 27, 2009 at 9:39 AM, <span dir="ltr"><<a href="mailto:stegch@web.de">stegch@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff" style="margin: 0px; font-size: 9pt; font-family: Verdana;"><p style="margin: 0cm 0cm 0pt;">
<span lang="EN-GB"><font size="3"><font face="Times New Roman">Hello,</font></font></span></p><p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman">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: </font></font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3" face="Times New Roman"> </font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>addSimpleRenderer: function(renderElem, renderer) {</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>var keys_simplerenderer = [</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'gradient', 'hashline', 'rasterfill', 'rastermarker', 'simpleline', 'simplemarker', </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New
Roman"><span> </span>'simplepolygon', 'truetypemarker' </font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>];</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>var keys_attributes = [</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'angle', 'anglefield', 'antialiasing', 'boundary', 'boundarycaptype', 'boundarycolor', </font></span></p>
<p style=""><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'boundaryjointype', 'boundarytransparency', 'boundarytype', 'boundarywidth', 'captype', </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'character', 'color', 'fillcolor', 'fillinerval', 'filltransparency', 'filltype', 'finishcolor', </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'font', 'fontcolor', 'fontsize', 'fontstyle', 'glowing', 'hotspot', 'image', 'interval', </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'jointype', 'linethickness', 'outline', 'overlap', 'rotatemethod', 'shadow', 'size', </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>'startcolor', 'tickthickness', 'transparency', 'type', 'url', 'usecentroid', 'width'</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>];</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Ti
mes New Roman"><span> </span>var symbol = renderer.symbol;</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>for (var i=0, len=keys_simplerenderer.length; i<len; i++) {</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>var key = keys_simplerenderer[i];</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>if(symbol.type == key) {</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>var selem = this.createElementNS("", key.toUpperCase() + "SYMBOL");</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>for (var j=0, len=keys_attributes.length; j<len; j++) {</font></span></p><p style="margin: 0cm 0cm 0pt;">
<span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>var key = keys_attributes[j];</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>renderElem.appendChild(selem);<span> </span></font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>if (symbol[key]) {</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>selem.setAttribute(key, symbol[key]);</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font><span> </span>}</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>}</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span><span> </span>}</font></span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt;" lang="EN-GB"><font face="Times New Roman"><span> </span>}</font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font face="Times New Roman"><span> </span>},</font></span></p><p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3" face="Times New Roman"> </font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman">Or is there any possibility to send an ArcXML string directly to ArcIMS?</font></font></span></p><p style="margin: 0cm 0cm 0pt;">
<span lang="EN-GB"><font size="3" face="Times New Roman"> </font></span></p><p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman">Furthermore, I think that there could be a little bug inside VALUEMAPLABELRENDERER, because "symbol" is undefined in line 5
60 in ArcXML.js. It should be declared as "var symbol = exact.symbol;"</font></font></span></p><p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman">Thank you for your answer.</font></font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman"></font></font></span> </p><p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman">Regards,</font></font></span></p>
<p style="margin: 0cm 0cm 0pt;"><span lang="EN-GB"><font size="3"><font face="Times New Roman">Christian</font></font></span></p><br><br><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td bgcolor="#000000"><img alt="" border="0" width="1" height="1"></td>
</tr><tr><td style="font-family: verdana; font-size: 12px; line-height: 17px;">Psssst! Schon vom neuen <a href="http://WEB.DE" target="_blank">WEB.DE</a> MultiMessenger gehört? <br>Der kann`s mit allen: <a href="http://www.produkte.web.de/messenger/?did=3123" target="_blank"><b>http://www.produkte.web.de/messenger/?did=3123</b></a> </td>
</tr></tbody></table></div>
<br>_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
<br></blockquote></div><br>