Changeset 33303 for main

Show
Ignore:
Timestamp:
05.07.2019 22:30:45 (7 weeks ago)
Author:
ak19
Message:

Fixing up error caused by debug print statement: no coord for marker.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/map-scripts.js

    r33291 r33303  
    730730    if(shape.type === google.maps.drawing.OverlayType.MARKER) { 
    731731        var marker = shape; 
    732         _gsDebug("Coord for marker is " + coord.toString()); 
     732        _gsDebug("Coord for marker is " + marker.getPosition().toString()); 
    733733         
    734734        marker.addListener('mouseover', function() { 
     
    741741    } 
    742742    else { 
    743         var coord = ShapesUtil.getLabelCoordinate(shape);        
     743        var coord = ShapesUtil.getLabelCoordinate(shape); 
    744744        _gsDebug("Coord for " + shape.type.toString() + " is " + coord.toString()); 
    745745        infoWindow.setPosition(coord);