iteraction

parent 86898394
...@@ -11,7 +11,7 @@ class APISentinel(): ...@@ -11,7 +11,7 @@ class APISentinel():
# "[0 TO 10]" or 95 # "[0 TO 10]" or 95
def getProducts(this, area, initDate, endDate, cloudPercentage): def getProducts(this, area, initDate, endDate, cloudPercentage):
GeoSentinel_path = "/home/geointdev/sidt-env/GeoSentinel/geosentinel/APISentinel.py" GeoSentinel_path = "/home/emmanuelhp/Documentos/GeoSentinel/geosentinel/APISentinel.py"
# GeoSentinel_path = "/home/emmanuelhp/Documentos/GeoSentinel/geosentinel/APISentinel.py" # GeoSentinel_path = "/home/emmanuelhp/Documentos/GeoSentinel/geosentinel/APISentinel.py"
api = imp.load_source('geosentinel', GeoSentinel_path) api = imp.load_source('geosentinel', GeoSentinel_path)
sentinel = api.APISentinel('emmhp', 'geoemm29') sentinel = api.APISentinel('emmhp', 'geoemm29')
......
...@@ -117,6 +117,10 @@ sidtMap.prototype.addInteraction = function() ...@@ -117,6 +117,10 @@ sidtMap.prototype.addInteraction = function()
type: "Polygon" type: "Polygon"
}); });
this.selectPointerMove = new ol.interaction.Select({
condition: ol.events.condition.pointerMove
});
this.interaction.on("drawend",function(e){ this.interaction.on("drawend",function(e){
self.showCoords(e.feature.getGeometry()); self.showCoords(e.feature.getGeometry());
}); });
...@@ -126,6 +130,8 @@ sidtMap.prototype.addInteraction = function() ...@@ -126,6 +130,8 @@ sidtMap.prototype.addInteraction = function()
}); });
this.map.addInteraction(this.interaction); this.map.addInteraction(this.interaction);
this.map.addInteraction(this.selectPointerMove);
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
sidtMap.prototype.onMousemove = function(e) sidtMap.prototype.onMousemove = function(e)
......
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