Minh Nguyễn
557b8afb7c
[core][iOS] Source iOS styles from default_styles
...
Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles.
Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs.
Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles.
/ref #1462
2015-10-30 13:09:37 -07:00
John Firebaugh
c5b95032a5
[core] Annotation refactor
2015-10-20 13:54:19 -07:00
Mike Morris
b46c102eb0
mason variant@1.0
2015-09-30 15:34:40 -07:00
Minh Nguyễn
0a172a21fd
CameraOptions
...
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.
Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.
Support customizable timing functions on iOS.
iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.
Fixes #1643 , fixes #1834 . Ref #1581 .
2015-09-07 09:22:52 -07:00
Ansis Brammanis
0d68c4fedf
load correct covering tiles in perspective view
...
port pointCoordinate from -js to convert screen points to tile
coordinates correctly in perspective view.
2015-08-24 18:41:51 -04:00
Ansis Brammanis
554425b753
fix earthquakes in perspective view
...
Use higher precision for matrix calculations so that the map does not
jump around while zooming.
2015-08-24 18:41:50 -04:00
Ansis Brammanis
d513910712
port mat4.perspective and mat4.rotate_x
2015-08-24 18:41:49 -04:00
Konstantin Käfer
66f0473bcf
add MBGL_USE_GLES2 define
2015-08-04 14:08:20 +02:00
Konstantin Käfer
78ec33320f
don't use certain STL functions
...
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
2015-08-04 14:08:19 +02:00
Thiago Marcos P. Santos
d207166abe
Remove unused function: cwd()
2015-07-11 12:42:45 +03:00
Konstantin Käfer
6271f8e546
mark Image constructor as explicit to avoid accidental implicit argument conversion
...
when passing a std::string instead of an Image, the parameter gets implicitly and automatically converted (== parsed) to a temporary Image object. Since parsing an Image shouldn't be a frequent operation
2015-07-08 19:46:01 +02:00
Konstantin Käfer
55ef14f3a8
compress_png: void* => const void*
2015-07-08 19:45:59 +02:00
Konstantin Käfer
7f705da564
Sprite store API
2015-07-08 19:45:59 +02:00
Minh Nguyễn
46a6173bd7
[wrap)
...
If (wrap] is desired, it is the responsibility of the caller to handle the case in which min is returned.
2015-07-06 13:07:34 -07:00
Justin R. Miller
bd0bf294bf
squash of #1655 : shape annotations support for core & iOS
2015-06-15 18:30:39 -07:00
Konstantin Käfer
f85889dc75
allow constructing LatLng/LatLngBounds objects from TileIDs
2015-06-08 16:13:37 -04:00
Konstantin Käfer
f4707f72e0
Replace mbgl::util::make_unique<> with std::make_unique<>
2015-05-26 17:57:38 +02:00
Thiago Marcos P. Santos
ee9b172152
Notify failures when loading glyphs
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
ac64bef87f
Notify failures when loading tiles
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
7274d2e195
Notify failures when loading the sprite JSON and image
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
90fd06762c
Notify failures when loading the source JSON
2015-05-22 10:44:18 +03:00
Konstantin Käfer
bcf66b7449
only return locked FontStack objects
2015-05-19 16:13:36 +02:00
Dane Springmeyer
768c259495
fix division by zero conditions
2015-05-08 15:19:41 -07:00
Thiago Marcos P. Santos
168d7c4f17
Add style change functionality to the Linux test app
...
Makes the life of people using Linux as development environment way
easier.
Just press 's' to cycle through 3 different styles.
2015-05-07 11:01:15 +02:00
Konstantin Käfer
72964f5bef
only update GL state when it actually changed
2015-05-04 17:33:05 +02:00
Dane Springmeyer
74604af9c5
fix compile with clang-3.6
2015-05-01 11:00:01 -07:00
John Firebaugh
4ccf246c10
Rewrite Worker in terms of Thread<>
2015-04-28 14:32:26 -04:00
Ansis Brammanis
af1537ca79
port LineBucket::addLine from -js
2015-04-27 11:44:49 +02:00
Minh Nguyễn
8b44cfeb76
Ensure correct spin direction
...
Ported mapbox/mapbox-gl-js#821 as well as `util.wrap()` from mapbox-gl-js.
Fixes #1199 .
2015-04-18 22:14:39 -07:00
John Firebaugh
0c087603e6
Replace uv_messenger with AsyncQueue; rewrite remaining uv_* in C++
2015-04-09 15:30:58 -07:00
John Firebaugh
9331acf8e6
Add typedefs for std::chrono::steady_clock types
2015-04-02 12:28:12 +02:00
Justin R. Miller
486a385f98
Merge branch 'master' into 1022-annotations-thread-safety
2015-03-23 11:13:51 -07:00
Justin R. Miller
ecb8e2800d
Cocoa annotations API
2015-03-22 00:53:36 -07:00
Konstantin Käfer
f73dfc73f1
make more things const and refs, and add mutexes
2015-03-20 13:14:00 +01:00
Justin R. Miller
e049ce6df1
refs #893 #992 : point annotations API
2015-03-17 17:30:24 -07:00
Konstantin Käfer
2075d6bb9a
fix ambiguous name (gcc)
2015-03-06 16:09:14 +01:00
Konstantin Käfer
025654a101
throw exception when shader compilation fails
2015-03-06 15:42:34 +01:00
Konstantin Käfer
c30bb1a9f8
add more locking around GlyphStore and FontStack
...
this is a stopgap until we have a solution that gives every worker thread their own copy
2015-03-06 15:42:34 +01:00
Konstantin Käfer
cf235c6592
move readlock/writelock to uv.hpp and add movable lock/mutex
2015-03-06 15:42:33 +01:00
Konstantin Käfer
86455585ee
update mapbox::variant
2015-03-06 14:40:33 +01:00
Justin R. Miller
6e41664cb0
fixes #476 & #853 : pixel/meter/latlng conversion routines in core & iOS
2015-02-16 09:52:36 -08:00
Leith Bade
acfeda9899
Fix #include <uv.h> mixing between C and C++ modes
2015-02-11 19:01:30 -08:00
Konstantin Käfer
704b3719f5
use standard DEBUG macro rather than NDEBUG
2015-02-04 10:49:07 +01:00
Konstantin Käfer
b9bf66e67e
rewrite storage layer to be independent of the Map's event loop
2015-02-04 10:46:37 +01:00
Leith Bade
89bbd29278
Use std::chrono
2015-02-04 09:39:25 +11:00
Leith Bade
69cd7268d7
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
...
Conflicts:
platform/default/http_request_baton_curl.cpp
2014-12-10 19:13:21 +11:00
Konstantin Käfer
e11c073e51
report version number in user agent string
...
refs #628
2014-12-08 16:21:15 +01:00
Konstantin Käfer
1f91be988b
add user agent header
...
fixes #628
2014-12-08 11:04:08 +01:00
Leith Bade
de9eb00276
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into android-mason
...
Conflicts:
.gitignore
gyp/mbgl-ios.gypi
gyp/mbgl-linux.gypi
gyp/mbgl-osx.gypi
include/mbgl/map/map.hpp
src/mbgl/map/map.cpp
src/mbgl/storage/caching_http_file_source.cpp
2014-12-05 23:16:49 +11:00
Konstantin Käfer
1e3fb3a423
remove usage of relative paths
2014-12-04 20:02:51 +01:00