OpenLayers.Control.YourControl = OpenLayers.Class(OpenLayers.Control, {
 
    // may private properties here ...
 
      
 
    initialize: function(options) {
 
        OpenLayers.Control.prototype.initialize.apply(this, arguments);
 
        // initialize private settings here ...
 
    },
 
  
 
    draw: function() {
 
        OpenLayers.Control.prototype.draw.apply(this);
 
        // add private elements here ...
 
        return this.div;
 
    },
 
  
 
    destroy: function() {
 
        // delete private elements here ...
 
        OpenLayers.Control.prototype.destroy.apply(this);
 
    },
 
  
 
    // may event handlers here ...
 
      
 
    CLASS_NAME: "OpenLayers.Control.YourControl"
 
});

 

相关文章:

  • 2021-06-04
  • 2021-05-01
  • 2021-04-23
  • 2021-03-31
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-11-04
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
相关资源
相似解决方案