npm.io
1.0.6 • Published 5 years ago

geolinks

Licence
MIT
Version
1.0.6
Deps
0
Size
13 kB
Vulns
0
Weekly
0
Stars
2

Links to resources with geographical coordinates

// get link to Google Map (resource ID: "google") 
var googleMapLink = geolink.getLink("google", {lat: -33.865, lng: 151.209, zoom: 10} );
// returns
// https://maps.google.com/maps?ll=-33.865,151.209&q=-33.865,151.209&hl=en&t=m&z=10

More details and interactive demo available at

http://geolinks.kozlenko.info/

Build Status