This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 385
update default tile/style endpoints for mapbox styles #1317
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
598cd92
change base url
33c6d22
add template style mapping to config
a82b112
point old style templates to equivalent gl styles
1e4a3e7
update test url expecations
19d016e
update geocoder test urls
b47a26e
update shareControl iFrame test
9c12d3c
update logo mock servers
f5b2456
add console warn util
03668db
add classic style warning
23e54f8
fix tile requests when retina = true
4a7c9c4
account for style-spec default center/zoom
89bf17f
add redirect case and fix map.js tests
f999035
add new test cases for default ids
c3a4b39
add some additional tilelayer tests
5a25f62
only warn once
bd3b7bc
simplified retina support
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,8 +1,18 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
HTTP_URL: 'http://a.tiles.mapbox.com/v4', | ||
HTTPS_URL: 'https://a.tiles.mapbox.com/v4', | ||
HTTP_URL: 'http://api.mapbox.com', | ||
HTTPS_URL: 'https://api.mapbox.com', | ||
FORCE_HTTPS: true, | ||
REQUIRE_ACCESS_TOKEN: true | ||
REQUIRE_ACCESS_TOKEN: true, | ||
TEMPLATE_STYLES: { | ||
'mapbox.dark': 'mapbox/dark-v10', | ||
'mapbox.light': 'mapbox/light-v10', | ||
'mapbox.osm-bright': 'mapbox/bright-v9', | ||
'mapbox.outdoors': 'mapbox/outdoors-v11', | ||
'mapbox.satellite': 'mapbox/satellite-v9', | ||
'mapbox.streets': 'mapbox/streets-v11', | ||
'mapbox.streets-basic': 'mapbox/basic-v9', | ||
'mapbox.streets-satellite': 'mapbox/satellite-streets-v11' | ||
} | ||
}; |
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
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
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
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
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
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
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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset='UTF-8'/> | ||
<link rel="stylesheet" href="../../dist/mapbox.css"/> | ||
<meta name='viewport' content='initial-scale=1.0 maximum-scale=1.0'> | ||
<link rel="stylesheet" href="embed.css"/> | ||
<script src="../../dist/mapbox.js"></script> | ||
<script src="access_token.js"></script> | ||
</head> | ||
<body> | ||
<div id='map'></div> | ||
<script type='text/javascript'> | ||
L.Browser.retina = true; | ||
L.mapbox.map('map', 'mapbox.outdoors') | ||
.setView([36.1257, -112.0586], 12); | ||
</script> | ||
</body> | ||
</html> |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The context this is being used may cause hundreds of duplicate warnings to be printed — maybe worth adopting something like
warnOnce
from GL JS?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point, implemented in 5a25f62