Skip to content

Commit

Permalink
Add openstreetmap as basemap.
Browse files Browse the repository at this point in the history
  • Loading branch information
na9da committed Nov 22, 2024
1 parent 91466b0 commit 89b20ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Models/BaseMaps/defaultBaseMaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,19 @@ export function defaultBaseMaps(terria: Terria): BaseMapJson[] {
contrastColor: "#000000"
});

baseMaps.push({
item: {
id: "basemap-openstreetmap",
name: "Openstreetmap",
type: "open-street-map",
url: "https://tile.openstreetmap.org/",
attribution:
"© <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>",
opacity: 1.0
},
image: "build/TerriaJS/images/openstreetmap.png",
contrastColor: "#000000"
});

return baseMaps;
}
Binary file added wwwroot/images/openstreetmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 89b20ec

Please sign in to comment.