This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* from http://lists.osgeo.org/pipermail/openlayers-users/2010-June/017976.html */ | |
$conn_string = "host=localhost port=5432 | |
dbname=mydatabase_with_postgis_activated user=my_user password=my_password"; | |
$link = pg_connect($conn_string) or die("Could not connect"); | |
$start_epsg = 'Proj4js.defs["EPSG:'; | |
$end_epsg_start_proj4js = '"] = "'; | |
$end_proj4js ='";'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// usage node getStyleComponents.js > groups.json | |
// looks for a style named style.json, rename to match or use process.argv if you want | |
// then save these ids to an array and toggle with: | |
// layers?.forEach(lyr => map.setLayoutProperty(lyr, "visibility", value)); | |
const style = require("./style.json"); | |
const components = style.layers.reduce((map, lyr) => { |
OlderNewer