Anand Thakker
b8654b3b04
[core] Move SourceType to the 'style' namespace
2017-10-16 16:32:53 -07:00
John Firebaugh
baaae99a03
[core, android] Factor JSON string conversions
...
This adds a `convertJSON` template, to be used like:
Error error
optional<Foo> foo = convertJSON<Foo>(string, error);
Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.
While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
Tobrun
9ef65440b6
[core] [android] - public api configurable base endpoint ( #6309 )
...
add runloop to test
2016-09-15 22:01:09 -07:00
Konstantin Käfer
e2bcea90fc
[core] use #pragma once instead of ifdef include guards
2016-05-25 21:35:37 +02: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
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
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01: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
e97662972f
Support v8 sprite, glyph, and style mapbox:// urls
2015-08-21 14:39:26 -07:00
Justin R. Miller
a8833c34d4
fixes #892 : support mapbox:// style URLs
2015-03-30 15:33:02 -07: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
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