Hello list,<br><br>I'm trying to show distinct symbols in the map using request parameters.<br>Explaining:<br>Each client can upload your own png, then i need to show this symbols in the map, in accordance with the request parameters that are a point(x,y) and a image(
my.png)<br>
<br>I tried the code below, but as expected, all points have the same symbol, the last one.<br><br>-----------Mapfile------------<br><br>LAYER<br>&nbsp;NAME COSMETICPOINT<br>&nbsp;TYPE POINT<br>&nbsp;STATUS DEFAULT<br>&nbsp;CLASS<br>&nbsp; LABEL
<br>&nbsp;&nbsp; TYPE TRUETYPE<br>&nbsp;&nbsp; FONT Arial<br>&nbsp;&nbsp; SIZE 12<br>&nbsp;&nbsp; POSITION lc<br>&nbsp;&nbsp; BUFFER 5<br>&nbsp;&nbsp; ANGLE auto<br>&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp; OUTLINECOLOR 255 255 255<br>&nbsp; END<br>&nbsp; COLOR 0 0 0<br>&nbsp;END<br>END<br><br>--------------------------------
<br><br>Well, I run this for each point I want to draw in the map.<br><br>---------Mapscript----------<br><br>layerObj layer = map.getLayerByName(&quot;COSMETICPOINT&quot;);<br><br>symbolObj symbol = new symbolObj(value,&quot;/var/www/images/&quot;+value+&quot;.png&quot;);
<br>symbol.setType(mapscript.MS_SYMBOL_PIXMAP);<br>map.getSymbolset().appendSymbol(symbol);<br>layer.getClass(0).getStyle(0).setSymbol(map.getSymbolset().index(value));<br clear="all"><br>lineObj line = new lineObj();<br>
line.add(new pointObj(x,y,0));<br>shapeObj shp = new shapeObj(mapscript.MS_SHAPEFILE_POINT);<br>shp.add(line);<br>shp.setText(label);<br>layer.addFeature(shp);<br><br>map.draw();<br><br>---------------------------------<br>
<br>How can I do what I need?<br><br>Thanks in advance.<br><br>Fred<br><br>-- <br>&quot;Everything under the sun is in tune<br>But the sun is eclipsed by the moon&quot;