Skip to content

Commit

Permalink
Fix map layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuttleu committed Dec 7, 2023
1 parent 6f0f7f0 commit 44ba5a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/Resgrid.Config/MappingConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static class MappingConfig
public static string DispatchAppOSMKey = "";
public static string BigBoardOSMKey = "";

public static string LeafletTileUrl = "";
public static string LeafletTileUrl = "https://api.maptiler.com/maps/streets/{z}/{x}/{y}.png?key=";
public static string LeafletAttribution = "© OpenStreetMap contributors CC-BY-SA";

public static string GetWebsiteOSMUrl()
Expand Down
4 changes: 4 additions & 0 deletions Docker/resgrid.env
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ RESGRID__MappingConfig__GoogleMapsJSKey=
# https://developers.google.com/maps/documentation/geocoding/get-api-key
RESGRID__MappingConfig__GoogleMapsApiKey=

# MapTiler API Key
# https://www.maptiler.com/
RESGRID__MappingConfig__OSMKey=

# what 3 words api key
# https://developer.what3words.com/public-api
RESGRID__MappingConfig__What3WordsApiKey=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class MapComponent implements OnInit {

if (!this.map) {
var osm = L.tileLayer(
this.leafletosmurl,
this.leafletosmurl+window['rgOsmKey'],
{
maxZoom: 19,
attribution: this.mapattribution,
Expand Down

0 comments on commit 44ba5a2

Please sign in to comment.