문서의 이전 판입니다!


Leafletjs

http://leafletjs.com/ An Open-Source JavaScript Library for Mobile-Friendly Interactive Maps

http://www.osgeo.org

예제

타일맵

<html>
<head>
<link rel="stylesheet"
    href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<style>
    #map { height: 360px; }
</style>
<script language="javascript"> 
function onLoAd() 
{
    var map = L.map('map');
    L.tileLayer('http://f4map.vaslor.net/files/maps/f4/{z}/{x}/{y}.png?',
    {
        maxZoom: 6,
        minZoom: 2,
        continuousWorld: false,
        noWrap:true,
        tms:true,
        attribution: '<a href="http://openwiki.kr/tech/leafletjs">test</a>',
        id: 'test' 
    }
      ).addTo(map);
    map.setView([-55,-80], 2);
}
</script>
</head>
<body onLoad="onLoAd()">
    <div id="map"></div>
</body>
</html>