Skip to content

Commit e133e21

Browse files
committed
update all links from HTTP to HTTPS
1 parent 6d35f31 commit e133e21

13 files changed

+61
-61
lines changed

README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ BootLeaf
1313

1414
### Introduction
1515

16-
This is an update to the excellent [Bootleaf](https://github.com/bmcbride/bootleaf) code written by [Bryan McBride](https://github.com/bmcbride), which incorporates the responsive framework [Bootstrap](http://getbootstrap.com) with the lightweight [Leaflet](http://leafletjs.com) mapping API.
16+
This is an update to the excellent [Bootleaf](https://github.com/bmcbride/bootleaf) code written by [Bryan McBride](https://github.com/bmcbride), which incorporates the responsive framework [Bootstrap](https://getbootstrap.com) with the lightweight [Leaflet](https://leafletjs.com) mapping API.
1717

1818
This update decouples the application logic from the map contents, and so provides a framework for rapid creation of new maps by simply updating a configuration file.
1919

@@ -26,7 +26,7 @@ Support is provided for:
2626
- ArcGIS Server feature, dynamic and tiled layers
2727
- Clustering of WFS, GeoJSON and ArcGIS Server feature layers
2828

29-
Note - WMS and WFS layers have been tested in GeoServer only. [CORS](http://suite.opengeo.org/docs/latest/sysadmin/cors/index.html) and [jsonp](https://www.gaiaresources.com.au/json-with-geoserver-and-leaflet/) should be enabled on GeoServer for best results.
29+
Note - WMS and WFS layers have been tested in GeoServer only. [CORS](https://suite.opengeo.org/docs/latest/sysadmin/cors/index.html) and [jsonp](https://www.gaiaresources.com.au/json-with-geoserver-and-leaflet/) should be enabled on GeoServer for best results.
3030

3131
Note - Bootleaf uses the [Esri-Leaflet](https://esri.github.io/esri-leaflet/) plugin, in order to support ArcGIS layers and display Esri basemaps. Please note the [Esri usage terms](https://github.com/esri/esri-leaflet#terms) before using this.
3232

@@ -84,7 +84,7 @@ When editing these values, ensure that the key *names* are quoted. *Textual valu
8484
#### Parameter explanations
8585

8686
- `title` : displayed in the header of the browser
87-
- `start` : used to set the inital map extent, and other Leaflet [initiation parameters](http://leafletjs.com/reference-1.0.2.html#map-factory)
87+
- `start` : used to set the inital map extent, and other Leaflet [initiation parameters](https://leafletjs.com/reference-1.0.2.html#map-factory)
8888
- `about` : displayed in the map's About panel
8989
- `bing_key` : a license key to use [Bing Maps basemap tiles](https://msdn.microsoft.com/en-us/library/ff428642.aspx)
9090
- `mapboxKey` : a license key to use [MapBox basemap tiles](https://www.mapbox.com/help/how-access-tokens-work/)
@@ -98,8 +98,8 @@ When editing these values, ensure that the key *names* are quoted. *Textual valu
9898
- `history` : display next/previous buttons on the map, to enable moving forward/back through the extent history
9999
- `bookmarks` : spatial bookmarks may be saved to the config file, or added via the UI. In the latter case they're accessible via cookies on the current user's machine. Follow the pattern of the sample bookmarks to create new instances
100100
- `activeTool` : a tool may optionally be configured as active when the map loads. Current options are `identify`, `queryWidget` (see below for more info) and `coordinate` (which reports the coordinates at the location clicked on the map)
101-
- `defaultIcon` : optionally, override the [default icon](http://leafletjs.com/reference-1.1.0.html#icon-default) which is a blue pin, for example to specify an alternate image, or to change the size and shape of the pin. This icon is used in the geocoding result display amongst other areas
102-
- `projections` - an array of [proj4js](http://proj4js.org/) projection definitions, which are used when projecting coordinates from other reference systems onto the map. Determine each layer's projection, then look up the details at http://spatialreference.org/. Add each layer's WKID to the `projections` array in the format:
101+
- `defaultIcon` : optionally, override the [default icon](https://leafletjs.com/reference-1.1.0.html#icon-default) which is a blue pin, for example to specify an alternate image, or to change the size and shape of the pin. This icon is used in the geocoding result display amongst other areas
102+
- `projections` - an array of [proj4js](https://proj4js.org/) projection definitions, which are used when projecting coordinates from other reference systems onto the map. Determine each layer's projection, then look up the details at https://spatialreference.org/. Add each layer's WKID to the `projections` array in the format:
103103

104104
```
105105
"projections": [
@@ -141,7 +141,7 @@ Various basemaps may be included on the map, by listing the basemap IDs as shown
141141

142142
(Bing basemaps require a valid `bing_key` parameter in the config file)
143143

144-
[Leaflet Tiled basemaps](http://leafletjs.com/reference-1.0.2.html#tilelayer):
144+
[Leaflet Tiled basemaps](https://leafletjs.com/reference-1.0.2.html#tilelayer):
145145
- `OpenStreetMap`
146146

147147
![basemaps screenshot](https://i.imgur.com/ja3Z9q1.png)
@@ -168,10 +168,10 @@ To begin adding layers, find the `"layers": []` section of the config file, and
168168
- `agsFeatureLayer` : [ArcGIS Server Feature layer](https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html)
169169
- `agsDynamicLayer` : [ArcGIS Server Dynamic layer](https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html)
170170
- `agsTiledLayer` : [ArcGIS Server Tiled layer](https://developers.arcgis.com/javascript/3/jsapi/arcgistiledmapservicelayer-amd.html)
171-
- `geoJSON` : [Leaflet GeoJSON](http://leafletjs.com/reference-1.0.2.html#geojson)
172-
- `wmsTiledLayer` : [Leaflet WMS Tile layer](http://leafletjs.com/reference-1.0.2.html#tilelayer-wms)
173-
- `tileLayer` : [tiled layers](http://leafletjs.com/reference-1.0.3.html#tilelayer) which follow the pattern 'http://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'
174-
- `WFS` : [WFS](http://www.opengeospatial.org/standards/wfs) layers (Note: to date, testing has only been done on WFS as provided by GeoServer in GeoJSON format.)
171+
- `geoJSON` : [Leaflet GeoJSON](https://leafletjs.com/reference-1.0.2.html#geojson)
172+
- `wmsTiledLayer` : [Leaflet WMS Tile layer](https://leafletjs.com/reference-1.0.2.html#tilelayer-wms)
173+
- `tileLayer` : [tiled layers](https://leafletjs.com/reference-1.0.3.html#tilelayer) which follow the pattern 'https://{s}.somedomain.com/blabla/{z}/{x}/{y}{r}.png'
174+
- `WFS` : [WFS](https://www.opengeospatial.org/standards/wfs) layers (Note: to date, testing has only been done on WFS as provided by GeoServer in GeoJSON format.)
175175

176176
Note - it may be necessary to use a [reverse proxy](https://github.com/iag-geo/bootleaf/blob/master/reverseProxy.md) in order to access data from GeoServer.
177177

@@ -185,16 +185,16 @@ Note - it may be necessary to use a [reverse proxy](https://github.com/iag-geo/b
185185
- `layers` : `[1, 2, 3]` - applies to ArcGIS Dynamic layer, and specifies the visible layers
186186
- `typeName` : applies to WFS layers, and specifies the GeoServer layer to draw
187187
- `popup` : `true/false` - applies to WFS and ArcGIS Feature layers, and determines whether to show a popup when clicking on the feature
188-
- `where` : a [SQL clause](http://resources.arcgis.com/en/help/main/10.2/index.html#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/) to limit the features returned. Applies to WFS, wmsTiledLayer and ArcGIS Feature layers. Note that when using a `where` clause with a GeoServer layer, and also using the Identify functionality, only simple `where` clauses are supported (eg `where`: `fieldName = 'value'`)
188+
- `where` : a [SQL clause](https://resources.arcgis.com/en/help/main/10.2/index.html#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/) to limit the features returned. Applies to WFS, wmsTiledLayer and ArcGIS Feature layers. Note that when using a `where` clause with a GeoServer layer, and also using the Identify functionality, only simple `where` clauses are supported (eg `where`: `fieldName = 'value'`)
189189
- `layerDefs` : a [query](https://esri.github.io/esri-leaflet/api-reference/layers/dynamic-map-layer.html) to limit the features returned, in the format `{3:"STATE_NAME='Kansas'", 2:"POP2007>25000"}`. Applies to ArcGIS Dynamic layers
190-
- `viewParams` : a query to limit the features return from a WMS/WFS layer. This requires that the layer has been [appropriately configured as a SQL View](http://docs.geoserver.org/stable/en/user/data/database/sqlview.html) in GeoServer
190+
- `viewParams` : a query to limit the features return from a WMS/WFS layer. This requires that the layer has been [appropriately configured as a SQL View](https://docs.geoserver.org/stable/en/user/data/database/sqlview.html) in GeoServer
191191
- `cluster` : `true/false` - cluster point features. Applies to WFS, ArcGIS Feature and GeoJSON layers. Additional options are described on the [Leaflet cluster](https://github.com/Leaflet/Leaflet.markercluster) page
192192
- `hidden` : `true/false` - when true, the layer will not be shown in the Table of Contents or on the map, but can still be used in the Query Widget. This can be useful to allow querying of a complex layer which can't easily be drawn on the map
193193
- `showOnTop` : `true:false` - when true, this layer will be drawn on top of other layers. This can be used to ensure that points draw on top of polygons, etc. (Note that When multiple layers have this option set, there is the potential that they will overlap _each other_.)
194194
- `geomField` - applies to GeoServer layers. The name of the geometry field
195195
- `label`: `{"name": "field_name","minZoom": 10, maxZoom: 16}` - this option creates a simple text label layer based on the specified field name, with the label layer switching on/off based on the current map scale. Coincident labels are de-duplicated. Applies to WFS and GeoJson layers only
196196
- `outputFormat` : for WFS layers, override the default `text/javascript` output format type, eg using `application/json` or `text/json` as required by the GeoServer instance
197-
- `EPSG` - applies to GeoServer layers. The WKID value for this layer's coordinate system - see http://spatialreference.org/
197+
- `EPSG` - applies to GeoServer layers. The WKID value for this layer's coordinate system - see https://spatialreference.org/
198198

199199
**Specifying and formatting fields**
200200

@@ -226,8 +226,8 @@ For ArcGIS Feature Layers, if this option is specified the layer's ID field must
226226
- `tooltipField` : `'fieldName'` - for WFS and agsFeatureLayers, you can specify the name of a field to be displayed in a simple tooltip when the user hovers over the feature
227227

228228
**Styling options**
229-
- `style` : style object in [Leaflet format](http://leafletjs.com/reference.html#path-options), which will over-write the default Leaflet styles. Applies to GeoJSON and ArcGIS Feature layers
230-
- `icon` : specify a marker [icon](http://leafletjs.com/reference.html#icon) for GeoJSON and ArcGIS Feature layers
229+
- `style` : style object in [Leaflet format](https://leafletjs.com/reference.html#path-options), which will over-write the default Leaflet styles. Applies to GeoJSON and ArcGIS Feature layers
230+
- `icon` : specify a marker [icon](https://leafletjs.com/reference.html#icon) for GeoJSON and ArcGIS Feature layers
231231
- `clusterIconClass` - over-write the standard cluster styles, and apply a given style to all cluster icons in this layer. Specify a `background-color` or other CSS properties for this class in order to style the cluster appropriately
232232

233233
_Note that only one of these styling options may be applied to a layer as they are mutually exclusive._
@@ -236,7 +236,7 @@ Other parameters (as described in the Supported Layer Types links above) may be
236236

237237
## [Table of Contents](#table-of-contents)
238238

239-
The [table of contents](http://leafletjs.com/reference-1.0.2.html#control-layers-option) may optionally be used to allow users to switch layers on/off.
239+
The [table of contents](https://leafletjs.com/reference-1.0.2.html#control-layers-option) may optionally be used to allow users to switch layers on/off.
240240

241241
![Table of Contents screenshot](https://i.imgur.com/V9Ssnke.png)
242242

@@ -292,7 +292,7 @@ To enable this, add the `identify` object as an option under a Dynamic or WMS la
292292

293293
If `outFields` is not specified against the `identify` object, the layer's `outFields` will be used. See the `outFields` section above for more information on the field specification.
294294

295-
Note: If the ArcGIS Server REST API lists an alias against a field, this should be used in place of the field name. Eg in the case of [this layer](http://vmgeospatialdev.erga.aubootleaf.corp/arcgis/rest/services/admin_boundaries/EmbargoRegions_BOM_201506/MapServer/1) the *BNAME* field has an alias, so (somewhat confusingly) the *alias* should actually be specified in the `name` field:
295+
Note: If the ArcGIS Server REST API lists an alias against a field, this should be used in place of the field name. Eg in the case of [this layer](https://vmgeospatialdev.erga.aubootleaf.corp/arcgis/rest/services/admin_boundaries/EmbargoRegions_BOM_201506/MapServer/1) the *BNAME* field has an alias, so (somewhat confusingly) the *alias* should actually be specified in the `name` field:
296296

297297
*BNAME ( type: esriFieldTypeString , alias: BOM river region name)*
298298

config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var config = {
2525
//"key": "AIzaS....sbW_E", // when using the Google geocoder, include your Google Maps API key (https://developers.google.com/maps/documentation/geocoding/start#get-a-key)
2626
},
2727
"TOC": {
28-
//http://leafletjs.com/reference-1.0.2.html#control-layers-option
28+
//https://leafletjs.com/reference-1.0.2.html#control-layers-option
2929
"collapsed": false,
3030
"uncategorisedLabel": "Layers",
3131
"position": "topright",
@@ -55,7 +55,7 @@ var config = {
5555
"bing_key": "enter your Bing Maps key",
5656
"mapboxKey": "enter your MapBox key",
5757
// "defaultIcon": {
58-
// "imagePath": "http://leafletjs.com/examples/custom-icons/",
58+
// "imagePath": "https://leafletjs.com/examples/custom-icons/",
5959
// "iconUrl": "leaf-green.png",
6060
// "shadowUrl": "leaf-shadow.png",
6161
// "iconSize": [38, 95],

custom.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function beforeMapLoads(){
1111
// "id": "us_states",
1212
// "name": "States",
1313
// "type": "agsDynamicLayer",
14-
// "url": "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/",
14+
// "url": "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/",
1515
// "layers": [5],
1616
// "useCors": false,
1717
// "visible": true
@@ -40,8 +40,8 @@ function beforeMapLoads(){
4040

4141
function afterMapLoads(){
4242
// This function is run after the map has loaded. It gives access to bootleaf.map, bootleaf.TOCcontrol, etc
43-
44-
// Check to see whether the Gray basemap is chosen, and the user has zoomed in too far. In this case,
43+
44+
// Check to see whether the Gray basemap is chosen, and the user has zoomed in too far. In this case,
4545
// switch to the Streets basemap
4646
bootleaf.map.on("zoomend", function(evt){
4747
if (bootleaf.currentBasemap === 'Gray'){
@@ -56,4 +56,4 @@ function afterMapLoads(){
5656
bootleaf.leafletGeocoder.on("markgeocode", function(evt){
5757
console.log("Coordinates: ", evt.geocode.center.lat, ", ", evt.geocode.center.lng);
5858
});
59-
}
59+
}

reverseProxy.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Certain HTTP requests require the presence of a reverse proxy, which acts as a g
66

77
## Windows
88

9-
Download nginx for windows from http://nginx.org/en/docs/windows.html then open the config file under `\conf\nginx.conf`.
9+
Download nginx for windows from https://nginx.org/en/docs/windows.html then open the config file under `\conf\nginx.conf`.
1010

1111
## Mac
1212

@@ -26,7 +26,7 @@ Specify that all requests on this machine should pass via the reverse proxy to t
2626

2727
```
2828
location / {
29-
proxy_pass http://localhost:80/;
29+
proxy_pass https://localhost:80/;
3030
}
3131
```
3232

@@ -38,7 +38,7 @@ Add the following to your nginx.conf file:
3838

3939
```
4040
location /proxied_geoserver/ {
41-
proxy_pass http://path.to.your.geoserver:8080/geoserver/;
41+
proxy_pass https://path.to.your.geoserver:8080/geoserver/;
4242
}
4343
```
4444

@@ -54,4 +54,4 @@ Then within your Bootleaf application's config.js file, specify the URL to GeoSe
5454
}
5555
```
5656

57-
Access your Bootleaf app via port 8080 in order to send the above requests via the reverse-proxy, eg http://localhost:8080/bootleaf/
57+
Access your Bootleaf app via port 8080 in order to send the above requests via the reverse-proxy, eg https://localhost:8080/bootleaf/

src/js/app.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var bootleaf = {
3232
{"id": "esriDarkGray", "type": "esri", "theme": "DarkGray", "label": "Dark gray (ArcGIS)"},
3333
{"id": "esriNationalGeographic", "type": "esri", "theme": "NationalGeographic", "label": "National Geographic (ArcGIS)"},
3434
{"id": "esriOceans", "type": "esri", "theme": "Oceans", "label": "Oceans (ArcGIS)"},
35-
{"id": "OpenStreetMap", "type": "tiled", "label": "OpenStreetMap", "url": "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"},
35+
{"id": "OpenStreetMap", "type": "tiled", "label": "OpenStreetMap", "url": "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"},
3636
{"id": "Aerial", "type": "bing", "label": "Bing satellite"},
3737
{"id": "AerialWithLabels", "type": "bing", "label": "Bing satellite labels"},
3838
{"id": "Road", "type": "bing", "label": "Bing streets"}
@@ -98,7 +98,7 @@ $(document).ready(function(){
9898
"dashArray": '3'
9999
};
100100

101-
// Override the default icon if an icon is specified. See http://leafletjs.com/reference-1.1.0.html#icon-default
101+
// Override the default icon if an icon is specified. See https://leafletjs.com/reference-1.1.0.html#icon-default
102102
if (config.defaultIcon !== undefined){
103103
var options = ["imagePath", "iconUrl", "iconSize", "iconAnchor", "popupAnchor", "shadowUrl", "shadowSize", "shadowAnchor"];
104104
for (var o = 0; o < options.length; o++){
@@ -724,17 +724,17 @@ function setBasemap(basemap){
724724
bootleaf.basemapLayer = L.esri.basemapLayer(esriTheme, options);
725725
} else if (basemap.type === 'tiled'){
726726
if (basemap.id === 'OpenStreetMap') {
727-
options.attribution = "<a href='http://www.openstreetmap.org/copyright' target='_blank'>© OpenStreetMap contributors</a>";
727+
options.attribution = "<a href='https://www.openstreetmap.org/copyright' target='_blank'>© OpenStreetMap contributors</a>";
728728
}
729729
bootleaf.basemapLayer = L.tileLayer(basemap.url, options);
730730
} else if (basemap.type === 'mapbox'){
731-
options["attribution"] = "<a target='_blank' href='https://www.mapbox.com/about/maps/'>© Mapbox</a>, <a href='http://www.openstreetmap.org/copyright' target='_blank'>© OpenStreetMap</a>, <a href='https://www.mapbox.com/map-feedback/' target='_blank'>Improve this map</a>"
731+
options["attribution"] = "<a target='_blank' href='https://www.mapbox.com/about/maps/'>© Mapbox</a>, <a href='https://www.openstreetmap.org/copyright' target='_blank'>© OpenStreetMap</a>, <a href='https://www.mapbox.com/map-feedback/' target='_blank'>Improve this map</a>"
732732
var mapboxKey = config.mapboxKey || "";
733733
if (mapboxKey === '' || mapboxKey === undefined){
734734
$.growl.warning({ title: "Map Box error", message: "Ensure that you have specified a valid MapBox key in the config file"});
735735
}
736736
var mapboxTheme = basemap.theme || "streets";
737-
bootleaf.basemapLayer = L.tileLayer("http://a.tiles.mapbox.com/v4/mapbox." + mapboxTheme + "/{z}/{x}/{y}.png?access_token=" + mapboxKey, options);
737+
bootleaf.basemapLayer = L.tileLayer("https://a.tiles.mapbox.com/v4/mapbox." + mapboxTheme + "/{z}/{x}/{y}.png?access_token=" + mapboxKey, options);
738738
} else if (basemap.type === 'bing'){
739739
var options = {
740740
"bingMapsKey": config.bing_key,

src/plugins/WFST/Leaflet-WFST.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/WSFT/Leaflet-WFST.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)