Commit c288077e authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch '247-leaflet-map-using-http' into 'master'

Resolve "Leaflet map using HTTP"

Closes #247

See merge request !186
parents 6d69c75e adb6db5d
Pipeline #4687 passed with stages
in 3 minutes and 49 seconds
...@@ -97,8 +97,8 @@ class LocationMap extends React.Component<ILocationMapProps, any> { ...@@ -97,8 +97,8 @@ class LocationMap extends React.Component<ILocationMapProps, any> {
doubleClickZoom={ false } doubleClickZoom={ false }
> >
<TileLayer <TileLayer
attribution={ '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' } attribution={ '&copy; <a href="http://www.openstreetmap.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' }
/> />
{ positions && positions.map((position, i) => ( { positions && positions.map((position, i) => (
<Marker key={ i } position={ position }/> <Marker key={ i } position={ position }/>
......
...@@ -117,8 +117,8 @@ class FormMap extends React.Component<IFormMapProps, any> { ...@@ -117,8 +117,8 @@ class FormMap extends React.Component<IFormMapProps, any> {
zoom={ 6 } zoom={ 6 }
> >
<TileLayer <TileLayer
attribution={ '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' } attribution={ '&copy; <a href="http://www.openstreetmap.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' }
/> />
{ position && <Marker onContextmenu={ this.onMarkerRightClick } position={ position }/> } { position && <Marker onContextmenu={ this.onMarkerRightClick } position={ position }/> }
</Map> </Map>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment