Konstantin Käfer
559f3a654b
[core] add check for missing sprite URL file extension
2016-07-19 16:01:24 +02:00
jingsam
e82ecc60ac
mapbox: URL containing query string causes infinite loop ( #5554 )
...
* correct all EXPECT_EQ(actual, expected) to EXPECT_EQ(expected, actual)
* fix getMapboxURLPathname() of URL with querystring
* add test for normalizeSourceURL of non-mapbox protocal
* Update mapbox.cpp
2016-07-04 00:26:28 -07:00
Thiago Marcos P. Santos
a818917714
[Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
...
Pull less dependencies.
2016-05-05 18:47:14 +03:00
John Firebaugh
c39bd344b5
[core] Set mapbox::DEFAULT_OFFLINE_TILE_COUNT_LIMIT to 6000
2016-03-11 16:36:58 -08:00
Bruno de Oliveira Abinader
8944e2c588
[core] Replaced raw values with util::tileSize
2016-03-03 17:02:15 +02:00
John Firebaugh
96cd22efa0
[core] Set initial offline tile count limit to 768
2016-02-24 13:38:14 -08:00
John Firebaugh
065cda83fa
[core] Limit total number of offline Mapbox tiles
2016-02-24 13:38:14 -08:00
Young Hahn
43c44eccdc
Allow using tileSize: 512 as a switch to trade retina support for 512px raster tiles
2016-02-11 11:28:35 -08:00
John Firebaugh
025375ad0b
[core] Cache with mapbox:// tile URLs
2016-02-10 15:40:20 -08:00
Bruno de Oliveira Abinader
9cd9065031
Revert "Revert WebP support due to broken builds"
...
This reverts commit 6709bdcacd .
There was an issue with the script that removes '-lwebp' from WebP
linker flags, since we're statically linking. This is now fixed.
2016-01-20 10:35:44 +02:00
John Firebaugh
6709bdcacd
Revert WebP support due to broken builds
...
This reverts commits 2010fbb0e6 , a361ce47a1 , and d004bb275a .
2016-01-19 13:34:56 -08:00
Bruno de Oliveira Abinader
2010fbb0e6
[linux] Replace PNG with WebP on tile source URL
...
This is a hack, in the same fashion as adding {ratio} to the tile URLs.
We should update the raster tile sources to use WebP by default.
2016-01-19 16:06:37 +02:00
Konstantin Käfer
62973f9e5a
[core] move raster tile URL normalization to source parsing
2016-01-13 13:04:59 -08:00
Konstantin Käfer
bc309d84d7
[core] unify URL prefix detection (asset:// and mapbox://)
2016-01-08 12:14:39 +01:00
Tom MacWright
c80c823da2
[core] Ensure URL normalization is safe. Fixes #2695
2015-10-28 10:44:33 -04:00
Konstantin Käfer
a84cf62424
[core] include api.mapbox.com in canonicalization
...
and move the canonicalization to mapbox.cpp since it's not specific to the SQLiteCache
2015-09-28 15:06:41 +02:00
Lucas Wojciechowski
648b587959
Fixed missing labels and icons
2015-08-24 14:22:02 -07:00
Lucas Wojciechowski
e97662972f
Support v8 sprite, glyph, and style mapbox:// urls
2015-08-21 14:39:26 -07:00
Lucas Wojciechowski
a85fd681fc
Support new glyph URL syntax
2015-08-20 11:59:07 -07:00
jakepruitt
44182a30cf
Add curly-braces to if-statements
2015-07-27 10:16:14 -04:00
jakepruitt
14ba3cfd6a
Adding special case for non-fontstack "glyph" resource URLs
...
- does not prepend /v4/ to api endpoints like /fonts/v1/
- only prepends it to things starting with /fontstack
- solves the problem in #1918
- refs mapbox/mapbox-gl-style-spec#309
2015-07-27 10:16:14 -04:00
Justin R. Miller
a8833c34d4
fixes #892 : support mapbox:// style URLs
2015-03-30 15:33:02 -07:00
John Firebaugh
a5998dc59b
Fix conditional in normalizeSourceURL
...
The existing conditional would always be false, since it
was comparing a url that begins with "mapbox://". In fact
no conditional is necessary; the secure TileJSON resource
should always be requested.
2015-03-06 18:16:58 -08:00
Minh Nguyễn
cd83c48ed3
Insert {ratio} before extension, not inside access token
...
Fixes #959 .
2015-03-06 15:33:14 -08:00
Minh Nguyễn
8804c47d27
Only add {ratio} to raster tile URLs
...
Thanks to @mb12 for the suggestion.
2015-03-06 13:51:20 -08:00
Minh Nguyễn
a6c8a76694
Replace regex usage with basic string manipulation
...
Apparently we can’t rely on the existence of <regex> yet.
Fixes #919 .
2015-03-06 13:51:19 -08:00
Minh Nguyễn
41c01373d5
Load 2× raster tiles on HiDPI screens
...
Based on mapbox.normalizeTileURL() in mapbox/mapbox-gl-js, but insert a “{ratio}” placeholder instead of “@2x” in order to keep the pixelRatio logic in TileData::request().
Fixes #919 .
2015-03-06 13:51:19 -08:00
Konstantin Käfer
abafb52f37
make most headers private
2014-12-04 20:02:50 +01:00