This repository was archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathosm-config-sample.php
More file actions
69 lines (57 loc) · 3.12 KB
/
osm-config-sample.php
File metadata and controls
69 lines (57 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
// replace >True< with >False< if you want to disable it
define ("OSM_enable_Ajax", True);
// change them for shortcode generatgor & geotagger
// to your location
define ("OSM_default_lat", 48.856614);
define ("OSM_default_lon", 2.352222);
define ("OSM_default_zoom", 3);
// SERVER_EMBEDDED ... loaded by the plugin for each map (default)
// SERVER_WP_ENQUEUE ... registered and loaded by WordPress
define ("Osm_LoadLibraryMode", SERVER_EMBEDDED);
// OpenStreetMap scripts and tiles
//define ("Osm_OSM_LibraryLocation", 'http://www.openstreetmap.org/openlayers/OpenStreetMap.js');
define ("Osm_OSM_LibraryLocation", OSM_PLUGIN_URL.'js/OSM/openlayers/OpenStreetMap.js');
//if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) {
// define ("Osm_Mapnik_Tiles_a", 'https://a.tile.openstreetmap.org');
// define ("Osm_Mapnik_Tiles_b", 'https://b.tile.openstreetmap.org');
// define ("Osm_Mapnik_Tiles_c", 'https://c.tile.openstreetmap.org');
// define ("Osm_OCM_Tiles_a", 'https://a.tile.opencyclemap.org/cycle');
// define ("Osm_OCM_Tiles_b", 'https://b.tile.opencyclemap.org/cycle');
// define ("Osm_OCM_Tiles_c", 'https://c.tile.opencyclemap.org/cycle');
//}
//else{
define ("Osm_Mapnik_Tiles_a", 'http://a.tile.openstreetmap.org');
define ("Osm_Mapnik_Tiles_b", 'http://b.tile.openstreetmap.org');
define ("Osm_Mapnik_Tiles_c", 'http://c.tile.openstreetmap.org');
define ("Osm_OCM_Tiles_a", 'http://a.tile.opencyclemap.org/cycle');
define ("Osm_OCM_Tiles_b", 'http://b.tile.opencyclemap.org/cycle');
define ("Osm_OCM_Tiles_c", 'http://c.tile.opencyclemap.org/cycle');
//}
// BaseMap (Austria)
define ("Osm_BaseMap_Tiles", 'http://maps.wien.gv.at/basemap/geolandbasemap/');
// Stamen
define ("Osm_Stamen_Tiles_a", 'http://a.tile.stamen.com/');
define ("Osm_Stamen_Tiles_b", 'http://b.tile.stamen.com/');
define ("Osm_Stamen_Tiles_c", 'http://c.tile.stamen.com/');
// OpenLayers scripts
define ("Osm_OL_LibraryPath", OSM_PLUGIN_URL.'js/OL/2.13.1/');
define ("Osm_OL_LibraryLocation", OSM_PLUGIN_URL."js/OL/2.13.1/OpenLayers.js");
define ("Osm_OL_3_LibraryLocation", OSM_PLUGIN_URL."js/OL/3.5/ol.js");
define ("Osm_OL_3_CSS", OSM_PLUGIN_URL."js/OL/3.5/css/ol.css");
define ("Osm_OL_3_Ext_LibraryLocation", OSM_PLUGIN_URL."js/osm-v3-plugin-lib.js");
define ("Osm_OL_3_Ext_CSS", OSM_PLUGIN_URL."css/osm_map_v3.css");
// Google
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) {
define ("Osm_GOOGLE_LibraryLocation", 'https://maps.google.com/maps/api/js?sensor=false');}
else{
// define ("Osm_GOOGLE_LibraryLocation", 'http://maps.google.com/maps/api/js?sensor=false');
define ("Osm_GOOGLE_LibraryLocation", 'http://maps.google.com/maps/api/js?v=3&sensor=false');
}
// OpenSeaMap scripts
define ("Osm_harbours_LibraryLocation", OSM_PLUGIN_URL.'js/OSeaM/harbours.js');
define ("Osm_map_utils_LibraryLocation", OSM_PLUGIN_URL.'js/OSeaM/map_utils.js');
define ("Osm_utilities_LibraryLocation", OSM_PLUGIN_URL.'js/OSeaM/utilities.js');
// OpenWeather scripts
define ("Osm_openweather_LibraryLocation", 'http://openweathermap.org/js/OWM.OpenLayers.1.3.6.js');
?>