Guest User

Untitled

a guest
Jan 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //style map for polygons
  2.     var styleMap = new OpenLayers.StyleMap({
  3.         "default":{      
  4.             fillColor: "#0000ff",
  5.             fillOpacity: 0.0,
  6.             strokeColor: "#ff0000",
  7.             strokeWidth:2,  
  8.             strokeDashstyle:"solid",  
  9.             pointRadius:5,
  10.             graphicName:"cross"
  11.         },
  12.          "temporary":{//no fill on drag        
  13.             fillColor: "#0000ff",
  14.             fillOpacity: 0.0,
  15.             strokeColor: "#ff0000",
  16.             strokeWidth:2
  17.         },        
  18.          "select":{
  19.             fillColor: "#0000ff",
  20.             fillOpacity: 0.0,
  21.             strokeColor: "#000000",
  22.             strokeDashstyle:"dashdot",
  23.             strokeWidth:4,          
  24.             graphicName:"cross"
  25.            
  26.         }
  27.     });
Add Comment
Please, Sign In to add comment