Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why does programmatically switching layers in openlayers introduce this strange behaviour?
  2. find_control(editing_toolbar_polygon.getControlsByClass(new RegExp(".*DrawFeature")),"Point").events.register("activate",null,function(e){
  3.     map.removeControl(editing_toolbar_polygon);
  4.     polygon_layer.setVisibility(false);
  5.     vectors.setVisibility(true);
  6.     map.addControl(editing_toolbar_vector);
  7. });
  8.        
  9. find_control(editing_toolbar_polygon.getControlsByClass(new RegExp(".*DrawFeature")),"Point")