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> NAME COSMETICPOINT<br> TYPE POINT<br> STATUS DEFAULT<br> CLASS<br> LABEL
<br> TYPE TRUETYPE<br> FONT Arial<br> SIZE 12<br> POSITION lc<br> BUFFER 5<br> ANGLE auto<br> COLOR 0 0 0<br> OUTLINECOLOR 255 255 255<br> END<br> COLOR 0 0 0<br> 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("COSMETICPOINT");<br><br>symbolObj symbol = new symbolObj(value,"/var/www/images/"+value+".png");
<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>"Everything under the sun is in tune<br>But the sun is eclipsed by the moon"