How to use ole - 5 common examples

To help you get started, we’ve selected a few ole examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github geops / ole / demo / public / js / demo.js View on Github external
});

        editor.editLayer.events.register('featureadded', this, function(object, element) {
            localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });
        editor.editLayer.events.register('featureremoved', this, function(object, element) {
            localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });
        editor.editLayer.events.register('afterfeaturemodified', this, function(object, element) {
            localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });

        if (parseInt(localStorage['ole.map.zoom']) >= 0) {
            map.setCenter(
                new OpenLayers.LonLat(
                    parseFloat(localStorage['ole.map.center.lon']),
                    parseFloat(localStorage['ole.map.center.lat'])
                ),
                parseInt(localStorage['ole.map.zoom'])
            );
            editor.editLayer.addFeatures(geoJSON.read(localStorage['ole.map.features']));
        }
    }
});
github geops / ole / demo / public / js / demo.js View on Github external
map.events.register('moveend', this, function(object, element) {
            localStorage['ole.map.zoom'] = map.zoom;
            localStorage['ole.map.center.lat'] = map.center.lat;
            localStorage['ole.map.center.lon'] = map.center.lon;
        });
github geops / ole / demo / public / js / demo.js View on Github external
map.events.register('moveend', this, function(object, element) {
            localStorage['ole.map.zoom'] = map.zoom;
            localStorage['ole.map.center.lat'] = map.center.lat;
            localStorage['ole.map.center.lon'] = map.center.lon;
        });
github geops / ole / demo / public / js / demo.js View on Github external
editor.editLayer.events.register('afterfeaturemodified', this, function(object, element) {
            localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });
github geops / ole / demo / public / js / demo.js View on Github external
localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });
        editor.editLayer.events.register('featureremoved', this, function(object, element) {
            localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });
        editor.editLayer.events.register('afterfeaturemodified', this, function(object, element) {
            localStorage['ole.map.features'] = geoJSON.write(editor.editLayer.features);
        });

        if (parseInt(localStorage['ole.map.zoom']) >= 0) {
            map.setCenter(
                new OpenLayers.LonLat(
                    parseFloat(localStorage['ole.map.center.lon']),
                    parseFloat(localStorage['ole.map.center.lat'])
                ),
                parseInt(localStorage['ole.map.zoom'])
            );
            editor.editLayer.addFeatures(geoJSON.read(localStorage['ole.map.features']));
        }
    }
});

ole

OpenLayers Editor

BSD-2-Clause
Latest version published 1 month ago

Package Health Score

76 / 100
Full package analysis