draw button removed

parent dac74eac
......@@ -24,9 +24,4 @@ html, body
line-height: 32px;
background-color: rgba(220,220,220,0.9);
float:right;
}
#div-draw-btn
{
text-align: center;
}
\ No newline at end of file
......@@ -109,9 +109,10 @@ function sidtMap(divID, lng, lat, z)
sidtMap.prototype = Object.create( OpenStreetMapsClass.prototype );
//------------------------------------------------------------------------------
sidtMap.prototype.draw = function ()
sidtMap.prototype.addInteraction = function()
{
var self = this;
this.interaction = new ol.interaction.Draw({
source:this.vectorLayer.getSource(),
features: this.features,
......@@ -119,8 +120,7 @@ sidtMap.prototype.draw = function ()
});
this.interaction.on("drawend",function(e){
self.showCoords(e.feature.getGeometry());
self.map.removeInteraction(self.interaction);
self.showCoords(e.feature.getGeometry());
});
this.interaction.on("drawstart",function(e){
......@@ -128,20 +128,6 @@ sidtMap.prototype.draw = function ()
});
this.map.addInteraction(this.interaction);
this.map.addInteraction(this.selectPointerMove);
}
sidtMap.prototype.addInteraction = function()
{
var self = this;
this.interactionSelect = new ol.interaction.Select({
condition: ol.events.condition.pointerMove
});
this.map.addInteraction(this.interactionSelect);
}
//------------------------------------------------------------------------------
sidtMap.prototype.onMousemove = function(e)
......
......@@ -207,9 +207,6 @@
</form>
</div>
<div id="div-draw-btn" class="draw-button">
<button type="submit" name="draw" id="draw-btn" class="btn btn-primary" onclick="osmap.draw()"><i class="fa fa-object-ungroup"></i> Dibujar</button>
</div>
<!-- form-group-->
{% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment