Sundsvallskommun / OpenEMap-WebUserInterface

Open eMap user interface for the main map client
GNU Affero General Public License v3.0
4 stars 5 forks source link

Tool draw - Make it possible to choose between different styles when drawing (?h) #209

Open anderserla opened 9 years ago

anderserla commented 9 years ago

Colors Line width Opacity Simple symbols Callout Text font, size, weight and color

anderserla commented 9 years ago

See OpenLayers.Feature.Vector.style

Code tip https://stackoverflow.com/questions/25872464/how-to-style-each-feature-in-the-same-layer-with-different-colors-openlayers-2/26124729#26124729?newreg=3db71d822a5b4719b33d27ef0e384fa0

var newFeature = new OpenLayers.Feature.Vector(geometry, attributes, style); layer.addFeature(newFeature);