Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenlterpstra committed Dec 20, 2017
2 parents 048c13e + fda93a5 commit 8c52645
Show file tree
Hide file tree
Showing 15 changed files with 1,103 additions and 800 deletions.
404 changes: 198 additions & 206 deletions builds/WMJS.min.js

Large diffs are not rendered by default.

404 changes: 198 additions & 206 deletions builds/adagucviewer.min.js

Large diffs are not rendered by default.

Binary file added builds/adagucwebmapjs/php/FreeSans.ttf
Binary file not shown.
22 changes: 21 additions & 1 deletion builds/adagucwebmapjs/php/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,27 @@
*/
define('SERVICES_JSON_SUPPRESS_ERRORS', 32);


/**
* Converts to and from JSON format.
*
* Brief example of use:
*
* <code>
* // create a new instance of Services_JSON
* $json = new Services_JSON();
*
* // convert a complexe value to JSON notation, and send it to the browser
* $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4)));
* $output = $json->encode($value);
*
* print($output);
* // prints: ["foo","bar",[1,2,"baz"],[3,[4]]]
*
* // accept incoming POST data, assumed to be in JSON notation
* $input = file_get_contents('php://input', 1000000);
* $value = $json->decode($input);
* </code>
*/
class Services_JSON
{
/**
Expand Down
5 changes: 0 additions & 5 deletions builds/adagucwebmapjs/php/validateURL.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ function isValidURL($url){
return false;
}

/*
function isValidURLold($url){
return preg_match('|^http(s)?://[A-Za-z0-9-\-]+(.[A-Za-z0-9-\-]+)*(:[0-9]+)?(/.*)?$|i', $url);
} */

function validateUrl($url) {
if(isValidURL($url)==true){
Expand Down
520 changes: 314 additions & 206 deletions builds/adagucwebmapjs/webmapjs.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions builds/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ echo "" > adagucwebmapjs/webmapjs.min.js
cat ../I18n/lang.en.js >> adagucwebmapjs/webmapjs.min.js
cat ../proj4js/lib/proj4js.js >> adagucwebmapjs/webmapjs.min.js
cat ../proj4js/lib/projCode/stere.js >> adagucwebmapjs/webmapjs.min.js
cat ../proj4js/lib/projCode/merc.js >> adagucwebmapjs/webmapjs.min.js
cat ../jquery/hammer.min.js >> adagucwebmapjs/webmapjs.min.js
cat ../jquery/jquery-1.12.4.min.js >> adagucwebmapjs/webmapjs.min.js
cat ../jquery/jquery-ui.min.js >> adagucwebmapjs/webmapjs.min.js
cat jquery-addons.min.js >> adagucwebmapjs/webmapjs.min.js
cat ../d3/d3.v3.min.js >> adagucwebmapjs/webmapjs.min.js
cat ../d3/c3.min.js >> adagucwebmapjs/webmapjs.min.js
cat WMJS.min.js >> adagucwebmapjs/webmapjs.min.js
cat ../moment/moment.min.js >> adagucwebmapjs/webmapjs.min.js


echo "" > adagucwebmapjs/webmapjs.min.css
cat ../webmapjs/WMJSStyles.css >> adagucwebmapjs/webmapjs.min.css
Expand Down
185 changes: 185 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ var baseLayerConfiguration = [
enabled: true,
type: 'wms',
format:"image/gif"
},{
title:"arcGisCanvas",
name:"arcGisCanvas",
type: 'twms',
enabled:false
}, {
title:"OSM",
name:"OSM",
type: 'twms',
enabled:false
},{
service:"http://geoservices.knmi.nl/cgi-bin/bgmaps.cgi?",
name:"streetmap",
Expand Down Expand Up @@ -303,3 +313,178 @@ var xml2jsonrequestURL = "webmapjs/php/xml2jsonrequest.php?"
// xml2jsonrequestURL = 'http://localhost:8080/adaguc-services/xml2json?'
// autowmsURL = 'http://localhost:8080/adaguc-services/autowms?';
// getFeatureInfoApplications.push({name:'AutoWMS',iconCls:'button_getfeatureinfo'});

var WMJSTileRendererTileSettings = {
arcGisCanvas: {
'EPSG:3857': {
home: 'http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/',
minLevel: 1,
maxLevel: 16,
tileServerType: 'arcgisonline',
copyRight: 'Basemap copyright: 2013 Esri, DeLorme, NAVTEQ'
},
'EPSG:28992': {
home: 'http://services.arcgisonline.nl/arcgis/rest/services/Basiskaarten/Canvas/MapServer/tile/',
minLevel: 1,
maxLevel: 12,
origX:-285401.92,
origY:903401.92,
resolution:3440.64,
tileServerType: 'arcgisonline',
copyRight: 'Basiskaart bronnen: Esri Nederland, Esri, Kadaster, CBS en Rijkswaterstaat'
}
},
arcGisTopo: {
'EPSG:3857': {
home: 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/',
minLevel: 1,
maxLevel: 19,
tileServerType: 'arcgisonline',
copyRight: 'Basemap sources: Esri, DeLorme, NAVTEQ, TomTom, Intermap, increment P Corp., GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, ' +
'IGN, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community'
},
'EPSG:28992': {
home: 'http://services.arcgisonline.nl/arcgis/rest/services/Basiskaarten/Topo/MapServer/tile/',
minLevel: 1,
maxLevel: 12,
origX:-285401.92,
origY:903401.92,
resolution:3440.64,
tileServerType: 'arcgisonline',
copyRight: 'Basiskaart bronnen: Esri Nederland, Esri, Kadaster, CBS, Min VROM, Rijkswaterstaat en gemeenten: Rotterdam, Breda, Tilburg'
}
},
arcGisOceanBaseMap: {
home: 'http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/tile/',
minLevel: 1,
maxLevel: 19,
tileServerType: 'arcgisonline',
copyRight: 'Basemap sources: Esri, GEBCO, NOAA, National Geographic, DeLorme, NAVTEQ, Geonames.org, and other contributors'
},
arcGisSat: {
'EPSG:4326': {
home: 'http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/tile/',
minLevel: 1,
maxLevel: 15,
tileServerType: 'arcgisonline',
origX:-180,
origY:90,
resolution:0.3515625,
tileSize:512
},
'EPSG:3857': {
home: 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/',
minLevel: 1,
maxLevel: 18,
tileServerType: 'arcgisonline'
}
},
OSM: {
'EPSG:3857': {
home: 'https://b.tile.openstreetmap.org/',
minLevel: 1,
maxLevel: 16,
tileServerType: 'osm'
},
'EPSG:28992': {
home: 'http://services.arcgisonline.nl/ArcGIS/rest/services/Basiskaarten/PDOK_BRT/MapServer/tile/',
minLevel: 1,
maxLevel: 12,
origX:-285401.92,
origY:903401.92,
resolution:3440.64,
tileServerType: 'arcgisonline',
copyRight: 'Basiskaart bronnen: PDOK, Kadaster, OpenStreetMap'
}
},
NaturalEarth2: {
'EPSG:3411': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG3411/',
minLevel: 1,
maxLevel: 6,
origX:-12400000,
origY:12400000,
resolution:96875,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:3412': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG3412/',
minLevel: 1,
maxLevel: 6,
origX:-12400000,
origY:12400000,
resolution:96875,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:3575': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG3575/',
minLevel: 1,
maxLevel: 6,
origX:-13000000,
origY:13000000,
resolution:101562.5,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:3857': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG3857/',
minLevel: 1,
maxLevel: 7,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:4258': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG4326/',
minLevel: 1,
maxLevel: 6,
origX:-180,
origY:90,
resolution:0.703125,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:4326': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG4326/',
minLevel: 1,
maxLevel: 6,
origX:-180,
origY:90,
resolution:0.703125,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:28992': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG28992/',
minLevel: 1,
maxLevel: 5,
origX:-2999000,
origY:2995500,
resolution:23437,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:32661': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG32661/',
minLevel: 1,
maxLevel: 7,
origX:-5000000.0,
origY:4000000.0,
resolution:58593.75,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
},
'EPSG:54030': {
home: 'http://geoservices.knmi.nl/tiledbasemaps/NaturalEarth2/EPSG54030/',
minLevel: 1,
maxLevel: 7,
origX:-17000000.0,
origY:8625830.0,
resolution:132812.5,
tileServerType: 'wmst',
copyRight: 'NPS - Natural Earth II'
}
}
};

2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ function replaceHostName($url){

}

/*--- Now new line at the end of this file allowed --- */?>
/*--- Now new line at the end of this file allowed --- */?>
1 change: 1 addition & 0 deletions moment/moment.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 8c52645

Please sign in to comment.