JavaScript
geo

各Web地図サービス、Geo系ライブラリの引数(緯度経度)メモ

More than 3 years have passed since last update.

緯度:lat

経度:long


LatLong系


Google Maps API

new google.maps.LatLng(<lat>, <long>);


YOLP(Yahoo map)

new Y.LatLng(<lat>, <long>);


Bing Maps

 new Microsoft.Maps.Location(<lat>, <long>),


LeafletJS

new L.LatLng(<lat>, <long>)




LongLat系


OpenLayers v2

new OpenLayers.LonLat(<long>, <lat>)


OpenLayers v3

ol.proj.transform([<long>, <lat>], 'EPSG:****', 'EPSG:****')


D3.js Geo

d3.geo.mercator().center( [<long>, <lat>] )


Proj4js

new Proj4js.Point(<long> , <lat>)