Tutorial: iMapLiteAPI_init3

iMapLiteAPI_init3

 ImapLiteApi - example

Przykład wywołania mapy z kilkoma markerami:

    
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ImapLiteApi - example</title>
    <script src="http://mapy.geoportal.gov.pl/iMapLite/js/imapLiteApi-core.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
    function initMap() {
        ILITEAPI.init({
            "divId": "iapi",
            "width": 800,
            "height": 600,
            "activeGpMapId": "gp0",
            "activeGpMaps": ["gp0", "gp1"],
            "activeGpActions": ["pan", "fullExtent"],
            "scale": 2000,
            "marker": [{
                "x": 362269,
                "y": 362264,
                "scale": 2000,
                "opts": {
                    "title": "dymek nr 1",
                    "content": "dymek"
                }
            }, {
                "x": 361968,
                "y": 362234,
                "scale": 2000,
                "opts": {
                    "title": "dymek nr 2",
                    "content": "dymek"
                }
            }]
        });
    }
    </script>
</head>
<body onload="initMap()">
    <div id="iapi"></div>
</body>
</html>