-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: .gitignore WME_OpenMaps.user.js
- Loading branch information
Showing
9 changed files
with
950 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.settings | ||
.project | ||
.tern-project | ||
.tern-project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Template: | ||
{ | ||
id: , | ||
url: '', | ||
crs: '', | ||
bbox: new OL.Bounds(0, 0, 0, 0}, // minx: 0, miny: 0, maxx: 0, maxy: 0 | ||
format: 'image/png', | ||
title: '', | ||
abstract: '', | ||
attribution: '', | ||
capabilities: ['GetCapabilities', 'GetMap', 'GetFeatureInfo'], | ||
default_layers: [ ], | ||
layers: { | ||
'': { | ||
bbox: new OL.Bounds(0, 0, 0, 0), // optional | ||
queryable: true, | ||
title: '', | ||
abstract: '' // optional | ||
} | ||
} | ||
} | ||
|
||
1. Retrieve country code from https://countrycode.org/ and compose a new ID with it: country code + ## | ||
2. Clean up URL (HTTPS? Removed arguments?) | ||
3. Calculate BBOX: (new OL.Bounds(0, 0, 0, 0)).transform(new OL.Projection('EPSG:'), Waze.map.getProjection()) | ||
4. Layers: put all layer groups as first in the array, followed by other layers |