iteraction

parent 86898394
......@@ -11,7 +11,7 @@ class APISentinel():
# "[0 TO 10]" or 95
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"
api = imp.load_source('geosentinel', GeoSentinel_path)
sentinel = api.APISentinel('emmhp', 'geoemm29')
......
......@@ -116,6 +116,10 @@ sidtMap.prototype.addInteraction = function()
features: this.features,
type: "Polygon"
});
this.selectPointerMove = new ol.interaction.Select({
condition: ol.events.condition.pointerMove
});
this.interaction.on("drawend",function(e){
self.showCoords(e.feature.getGeometry());
......@@ -126,6 +130,8 @@ sidtMap.prototype.addInteraction = function()
});
this.map.addInteraction(this.interaction);
this.map.addInteraction(this.selectPointerMove);
}
//------------------------------------------------------------------------------
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