[Cartoweb-users] change legend icon

Oliver Christen oliver.christen at camptocamp.com
Fri Feb 22 02:04:27 EST 2008


I dont think this case was ever implemented, so I would say save the icon image in the default icon folder in server_conf/yourproject/icons/ and only set the filename in layer.layer.icon
Let me know if this works as I have never tried that before for wms layers.

regards
Oliver
  ----- Original Message ----- 
  From: MBeaudry 
  To: cartoweb-users at lists.maptools.org 
  Sent: Thursday, February 21, 2008 7:14 PM
  Subject: [Cartoweb-users] change legend icon


  hello - 


  I have applied a user style - sld.xml  to a remotely served WMS layer. 
  This works! Yeah. 
  However, the legend icon that is being used is the one returned from the WMS get map request if the map file

  states
  "wms_legend_graphic"  "true"  - so i have commented this out and


  I have tried to override this by changing layer.layer.icon = "path to icon" in layers.ini. 
  This does not seem to make the layer use the new icon.  



  What else should I be doing?



  Thanks!



  -- 



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080222/102bc3b8/attachment.html


More information about the Cartoweb-users mailing list