Commit Graph

42 Commits

Author SHA1 Message Date
Konstantin Käfer
dae18cc7bc remove some unused includes 2015-04-28 14:32:21 -04:00
Konstantin Käfer
b0a30943b4 move most private Map code to MapContext 2015-04-28 14:32:20 -04:00
Konstantin Käfer
ddf4dd882d [android] never pass garbage info to RegisterNatives() 2015-04-20 14:56:35 +02:00
Konstantin Käfer
6691f7249e remove nativeRun() method as that is now private 2015-04-17 13:40:42 +02:00
John Firebaugh
12c07b916b Rework easing transition code
This brings the easing transition code a bit closer to how easings work
in gl-js. Instead of having an array of individual transitions for scale,
rotate, and pan, there is a single transition function that does all the
required calculations. This permits us to:

* Eliminate the "timeout" transition. (Fixes #126)
* Replace start/stopPanning() et al with setGestureInProgress(). Apps or
  SDKs are expected to make paired calls to setGestureInProgress(). This
  state will be ORed with the active easing state to determine when to
  use texture interpolation. (Fixes #79)
* Run style recalculations only when an ease transition that affects the
  zoom is in progress. (Fixes #1155)
2015-04-02 16:12:29 -07:00
Konstantin Käfer
220ebf61dd replace iterator variable types with auto 2015-04-01 16:42:42 +02:00
Thiago Marcos P. Santos
2b6afe6a54 Merge pull request #972 from mapbox/log_cleanup
Refactoring of the log system
2015-03-12 14:18:25 +02:00
Thiago Marcos P. Santos
51bc265db3 Make the logging system static
No initialization is needed anymore and we can use the logging functions
safely at any point of the code (threading is not handled though, so you
might get multiplexed messages if you log from two threads
simultaneously).
2015-03-12 13:28:41 +02:00
Konstantin Käfer
47ede853c4 fixes black flicker on rotating the device
fixes #838

instead of rendering ad libitum on the map thread, we are now driving rendering from the UI thread on iOS via the map.renderSync() function. There are still white bars during the rotation, but the general content of the view is kept visible.

- upgrades GLFW to 3.1
- removes swapped/needsSwap in favor of a more explicit scheme
- View#invalidate() now replaces View#swap() and is called whenever the View needs to trigger a rerender. GLFW and Android to this right away, while iOS goes back to the main thread and does the Map redrawing as part of the GLKView update
- sets all iOS deployment targets to 7.0
- disables SQLite3 version check, since the library version changed on iOS 8.2
2015-03-12 12:16:38 +01:00
Konstantin Käfer
fb44fc81bd make Map::resize() private
they can only be called by View::resize
2015-03-06 13:52:25 +01:00
Leith Bade
d661fc9eb2 Fixup LatLng class ref 2015-02-19 14:28:50 -08:00
Leith Bade
5c79baedf9 Add projection functions to Java 2015-02-19 14:28:49 -08:00
Leith Bade
4daa02987b Tidy up JNI LatLng refs 2015-02-19 14:28:49 -08:00
Justin R. Miller
6e41664cb0 fixes #476 & #853: pixel/meter/latlng conversion routines in core & iOS 2015-02-16 09:52:36 -08:00
Brad Leege
d5109659b1 #868 - Updating getLatLon() calls in MapView and NativeMapView. Updating Java to C++ bindings to support refactored names. 2015-02-12 18:45:30 -08:00
Konstantin Käfer
29baacf3a5 refactor makefile 2015-02-04 10:49:09 +01:00
Leith Bade
89bbd29278 Use std::chrono 2015-02-04 09:39:25 +11:00
Leith Bade
95e653982d Throw on egl errors 2015-01-22 23:47:09 +11:00
Leith Bade
5feba9ac07 get/setAppliedStyleClasses -> get/setClasses 2015-01-18 17:05:01 +11:00
Leith Bade
1daf2207aa Remove coffeecatch 2015-01-13 20:31:24 +11:00
Leith Bade
e6b8c4c047 Clang-format on Android code 2015-01-02 10:14:00 +13:00
Leith Bade
46dc5e0700 Remove error 2014-12-26 08:00:47 +13:00
Leith Bade
c24b8355c5 Add error for testing new build system 2014-12-25 20:34:16 +13:00
Leith Bade
2db8134d20 Add Android user-agent info 2014-12-10 19:14:05 +11:00
Leith Bade
81bf36a86c Remove Map::cleanup() from JNI 2014-12-08 20:22:04 +11:00
Leith Bade
93ab4036e9 Fix commit 2014-12-06 00:50:23 +11:00
Leith Bade
772f154e4d Fix Android crash 2014-12-04 01:51:17 +11:00
Leith Bade
14cdd9c96f Rename lots of things 2014-12-04 01:10:43 +11:00
Leith Bade
634a15332d Fix typo 2014-11-30 19:46:43 +11:00
Leith Bade
b1c793d1e0 Add fps mode for #646 2014-11-28 00:19:11 +11:00
Leith Bade
9c7b6dc021 Remove canRotate 2014-11-21 20:44:39 +11:00
Leith Bade
bc72a3f79f Fix typos 2014-11-20 20:23:38 +11:00
Jordan Hollinger
4e3ae54062 Add functionality to get default transition duration from native code. Use it to save and restore state. #617 2014-11-19 17:24:49 -08:00
Leith Bade
900f6e87fa Fix null string crash 2014-11-18 22:47:57 +11:00
Leith Bade
eaece4f8bb Move stlye url and access token to property
Remove fragment stuff (for now)
2014-11-18 22:19:24 +11:00
Leith Bade
f0e4e27cd3 Read styles from APK 2014-11-17 23:17:22 +11:00
Leith Bade
b216b04a59 Fix typo 2014-11-16 19:41:54 +11:00
Leith Bade
97dc28883e Add coffeecatch 2014-11-16 19:32:51 +11:00
Leith Bade
7d66632209 Change to proper Log functions 2014-11-15 11:14:37 +11:00
Leith Bade
82908c99f7 More tidy up 2014-11-12 22:03:27 +11:00
Leith Bade
49da2c2fa5 Tidy code up more 2014-11-12 22:00:44 +11:00
Leith Bade
6b9e3c60ef Renamed source files using mapbox style
Move headers to mbgl/android
Tidy up headers and includes
2014-11-12 21:17:24 +11:00