emp3-web icon indicating copy to clipboard operation
emp3-web copied to clipboard

MAP_INTERACTION event is not fully filled with Worldwind engine

Open Reeter35 opened this issue 7 years ago • 0 comments

Based on Commit: 210ec18fe78713dcd9a92709fbe66389156e74e1

When subscribing to MAP_INTERACTION event using a Worldwind engine, the event passed as parameter is not correctly filled. Neither the "button" nor "keys" are filled.

Event received by the event listener: { "type": "emp3.api.events.MapInteractionEvent", "event": "single", "target": { "environment": "browser", "status": 2, "geoId": "f727f5d3-52a444ac-94f104f0-571a5d19", "bounds": { "north": 86.42640687119285, "west": 1.5735931288071596, "south": 1.5735931288071467, "east": 86.42640687119287, "range": 10000000, "altitude": 10000000, "centerLat": 44, "centerLon": 44, "roll": 0, "heading": 0, "tilt": 0 }, "engine": { "engineBasePath": "emp3/emp3-worldwind/", "mapEngineId": "worldwindMapEngine", "properties": { "debug": false, "cesiumNavigation": { "enableCompass": true, "enableZoomControls": true, "enableDistanceLegend": true }, "renderingOptimization": true, "iconSize": "small", "milStdLabels": "common", "brightness": 50, "midDistanceThreshold": 20000, "layers": {}, "defaultLayers": [] }, "manifestName": "manifest.js", "manifestUrl": "emp3/emp3-worldwind/manifest.js" }, "drawTransaction": null, "editTransaction": null, "iconSize": "small", "milStdLabels": "common", "brightness": 50, "renderingOptimization": true, "midDistanceThreshold": 20000, "farDistanceThreshold": 600000, "container": "empmap", "engineId": "worldwindMapEngine" }, "point": { "x": 344, "y": 201 }, "position": { "latitude": 54.518492291840545, "longitude": 25.462942690707933, "altitude": 0 }, "keys": [] }

This works correctly with Cesium and Leaflet.

Reeter35 avatar Feb 22 '18 11:02 Reeter35