draw button removed

parent dac74eac
...@@ -25,8 +25,3 @@ html, body ...@@ -25,8 +25,3 @@ html, body
background-color: rgba(220,220,220,0.9); background-color: rgba(220,220,220,0.9);
float:right; float:right;
} }
#div-draw-btn
{
text-align: center;
}
\ No newline at end of file
...@@ -109,9 +109,10 @@ function sidtMap(divID, lng, lat, z) ...@@ -109,9 +109,10 @@ function sidtMap(divID, lng, lat, z)
sidtMap.prototype = Object.create( OpenStreetMapsClass.prototype ); sidtMap.prototype = Object.create( OpenStreetMapsClass.prototype );
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
sidtMap.prototype.draw = function () sidtMap.prototype.addInteraction = function()
{ {
var self = this; var self = this;
this.interaction = new ol.interaction.Draw({ this.interaction = new ol.interaction.Draw({
source:this.vectorLayer.getSource(), source:this.vectorLayer.getSource(),
features: this.features, features: this.features,
...@@ -120,7 +121,6 @@ sidtMap.prototype.draw = function () ...@@ -120,7 +121,6 @@ sidtMap.prototype.draw = function ()
this.interaction.on("drawend",function(e){ this.interaction.on("drawend",function(e){
self.showCoords(e.feature.getGeometry()); self.showCoords(e.feature.getGeometry());
self.map.removeInteraction(self.interaction);
}); });
this.interaction.on("drawstart",function(e){ this.interaction.on("drawstart",function(e){
...@@ -128,20 +128,6 @@ sidtMap.prototype.draw = function () ...@@ -128,20 +128,6 @@ sidtMap.prototype.draw = function ()
}); });
this.map.addInteraction(this.interaction); 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) sidtMap.prototype.onMousemove = function(e)
......
...@@ -207,9 +207,6 @@ ...@@ -207,9 +207,6 @@
</form> </form>
</div> </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--> <!-- form-group-->
{% endblock %} {% 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