Commit ac4dc3b0 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

1. map marker mouseover - display marker info 2. fixed removing markers from map by index

parent 57e18eb5
...@@ -1045,6 +1045,7 @@ X3DOMObject.MapMarker.registerEvents = function(map_mark){ ...@@ -1045,6 +1045,7 @@ X3DOMObject.MapMarker.registerEvents = function(map_mark){
X3DOMObject.Marker.highlight(elem); X3DOMObject.Marker.highlight(elem);
Map.highlightMarker(index); Map.highlightMarker(index);
X3DOMObject.displayMarkInfo(index);
}); });
...@@ -1096,7 +1097,7 @@ X3DOMObject.MapMarker.registerEvents = function(map_mark){ ...@@ -1096,7 +1097,7 @@ X3DOMObject.MapMarker.registerEvents = function(map_mark){
if (e.originalEvent.ctrlKey){ if (e.originalEvent.ctrlKey){
// from Data // from Data
Data.markers.splice(index); Data.markers.splice(index,1);
// from Map (indices get updated) // from Map (indices get updated)
Map.deleteMarker(index); Map.deleteMarker(index);
......
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