Sha256: 707c49e960c166824d83dad29aaa3aa8bd2cb7fb8925d7a9ec2709db112e7c31

Contents?: true

Size: 1.26 KB

Versions: 6

Compression:

Stored size: 1.26 KB

Contents

<html>
    <head>
    <link rel="stylesheet" href="../../dist/leaflet.css" />
    <script>
        L_PREFER_CANVAS = true;
    </script>
    <link rel="stylesheet" href="../css/screen.css" />

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

    </head>
    <body>

        <div id="map"></div>


        <script>

        $(document).ready(function() {
            //Init a map, and attempt a locate.
            var map = L.map('map', {
                center: [39.84, -96.591],
                zoom: 4
            }).locate();

            L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
                attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
            }).addTo(map);

            var vanillaLayer = new L.LayerGroup();
            map.addLayer(vanillaLayer);

            map.on('moveend',function(e) {
                console.log('moveend fired.')
            });

            //For experiments using setRadius
            window.marker = L.circleMarker(map.getCenter(),{radius:30}).addTo(vanillaLayer);
        });

        </script>
        <script type="text/javascript" src="../../build/deps.js"></script>

        <script src="../leaflet-include.js"></script>

    </body>
</html>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
leaflet-js-0.8.dev2 lib/leaflet/debug/tests/canvasloop.html
leaflet-js-0.7.0.4 lib/leaflet/debug/tests/canvasloop.html
leaflet-js-0.7.0.3 lib/leaflet/debug/tests/canvasloop.html
leaflet-js-0.7.0.2 lib/leaflet/debug/tests/canvasloop.html
leaflet-js-0.7.0.1 lib/leaflet/debug/tests/canvasloop.html
leaflet-js-0.7.0 lib/leaflet/debug/tests/canvasloop.html