zarkzork / google-maps-distance-tooltip

Distance tooltips for Google Maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google maps direction arrows

Google maps plugin, wich enables direction arrows. Arrows stick to screen edge and point to target point when it's not in view port and they will show distance to viewport from border of screen. Check out demo.

screenshot

Sample usage:

var map = new google.maps.Map(document.getElementById("map-canvas")),
    position = new google.maps.LatLng(55.730196, 37.602141),
    marker = new google.maps.Marker({ position: position }),
    distanceOverlay = new DistanceOverlay({ position: position });

distanceOverlay.setMap(map);
marker.setMap(map);

Contributors

Thanks to Dmitry Fofanov for collaboration on this one.

About

Distance tooltips for Google Maps

License:MIT License


Languages

Language:JavaScript 52.9%Language:CSS 47.1%