Skip to content

Commit

Permalink
use https for tiles server (#403)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Haas <sehaas@deebas.com>
  • Loading branch information
sehaas authored and riseeverytime committed Oct 27, 2017
1 parent faed77d commit d39c580
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion __tests__/Marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Marker', () => {

renderIntoDocument(
<Map center={position} zoom={10}>
<TileLayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png" />
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<Marker position={position} />
</Map>,
)
Expand Down
4 changes: 2 additions & 2 deletions __tests__/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Popup', () => {

renderIntoDocument(
<Map center={position} zoom={10}>
<TileLayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png" />
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<Popup
position={position}
ref={function(e) {
Expand Down Expand Up @@ -72,7 +72,7 @@ describe('Popup', () => {

return (
<Map center={position} ref="map" zoom={10}>
<TileLayer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png" />
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
{popup}
</Map>
)
Expand Down
4 changes: 2 additions & 2 deletions docs/Components.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,13 @@ Example usage:
<LayersControl.BaseLayer name='OpenStreetMap.BlackAndWhite'>
<TileLayer
attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
url='http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png'
url='https://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png'
/>
</LayersControl.BaseLayer>
<LayersControl.BaseLayer name='OpenStreetMap.Mapnik'>
<TileLayer
attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
url='http://{s}.tile.osm.org/{z}/{x}/{y}.png'
url='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
/>
</LayersControl.BaseLayer>
<LayersControl.Overlay name='Marker with popup'>
Expand Down
4 changes: 2 additions & 2 deletions docs/Getting started.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import L from 'leaflet';
const position = [51.505, -0.09];
const map = L.map('map').setView(position, 13);

L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);

Expand All @@ -34,7 +34,7 @@ const position = [51.505, -0.09];
const map = (
<Map center={position} zoom={13}>
<TileLayer
url='http://{s}.tile.osm.org/{z}/{x}/{y}.png'
url='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
/>
<Marker position={position}>
Expand Down
2 changes: 1 addition & 1 deletion example/components/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class AnimateExample extends Component {
zoom={13}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
{marker}
</Map>
Expand Down
2 changes: 1 addition & 1 deletion example/components/bounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class BoundsExample extends Component {
<Map bounds={this.state.bounds}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Rectangle
bounds={outer}
Expand Down
2 changes: 1 addition & 1 deletion example/components/custom-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class CustomComponent extends Component {
<Map center={center} zoom={this.state.zoom}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<MyMarkersList markers={markers} />
</Map>
Expand Down
2 changes: 1 addition & 1 deletion example/components/draggable-marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class DraggableExample extends Component {
<Map center={position} zoom={this.state.zoom}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Marker
draggable={this.state.draggable}
Expand Down
2 changes: 1 addition & 1 deletion example/components/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class EventsExample extends Component {
zoom={13}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
{marker}
</Map>
Expand Down
4 changes: 2 additions & 2 deletions example/components/layers-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export default class LayersControlExample extends Component {
<BaseLayer checked name="OpenStreetMap.Mapnik">
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
</BaseLayer>
<BaseLayer name="OpenStreetMap.BlackAndWhite">
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png"
url="https://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png"
/>
</BaseLayer>
<Overlay name="Marker with popup">
Expand Down
2 changes: 1 addition & 1 deletion example/components/other-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class OtherLayersExample extends Component {
<Map center={center} zoom={13}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<LayerGroup>
<Circle center={center} fillColor="blue" radius={200} />
Expand Down
2 changes: 1 addition & 1 deletion example/components/pane.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class PaneExample extends Component {
<Map bounds={outer}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
{this.state.render ? (
<Pane name="cyan-rectangle" style={{ zIndex: 500 }}>
Expand Down
2 changes: 1 addition & 1 deletion example/components/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class SimpleExample extends Component {
<Map center={position} zoom={this.state.zoom}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Marker position={position}>
<Popup>
Expand Down
2 changes: 1 addition & 1 deletion example/components/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default class TooltipExample extends Component {
<Map center={center} zoom={13}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Circle
center={center}
Expand Down
2 changes: 1 addition & 1 deletion example/components/vector-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class VectorLayersExample extends Component {
<Map center={center} zoom={13}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Circle center={center} fillColor="blue" radius={200} />
<CircleMarker center={[51.51, -0.12]} color="red" radius={20}>
Expand Down
2 changes: 1 addition & 1 deletion example/components/video-overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class VideoOverlayExample extends Component {
<Map center={[25, -100]} onClick={this.onTogglePlay} zoom={4}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<VideoOverlay
bounds={[[32, -130], [13, -100]]}
Expand Down
2 changes: 1 addition & 1 deletion example/components/viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class ViewportExample extends Component {
viewport={this.state.viewport}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
</Map>
)
Expand Down
2 changes: 1 addition & 1 deletion example/components/wms-tile-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class WMSTileLayerExample extends Component {
onClick={this.onClick}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<WMSTileLayer
layers={this.state.bluemarble ? 'nasa:bluemarble' : 'ne:ne'}
Expand Down
2 changes: 1 addition & 1 deletion example/components/zoom-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ZoomControlExample = () => (
<Map center={[51.505, -0.09]} zoom={13} zoomControl={false}>
<TileLayer
attribution="&amp;copy <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<ZoomControl position="topright" />
</Map>
Expand Down
2 changes: 1 addition & 1 deletion example/umd.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<Map center={position} zoom={13}>
<TileLayer
attribution="&copy; <a href=&quot;http://osm.org/copyright&quot;>OpenStreetMap</a> contributors"
url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
<Marker position={position}>
<Popup>
Expand Down

0 comments on commit d39c580

Please sign in to comment.