Commit adb6db5d authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Leaflet map using HTTP

parent 6d69c75e
...@@ -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>
......
Supports Markdown
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