Niklas Ulvinge
d7d816cb67
SetSprite now works
2015-07-20 23:15:53 +02:00
Niklas Ulvinge
42cd266aa6
Correction colors transformation
2015-07-20 20:34:42 +02:00
Niklas Ulvinge
ab82bdd438
Optimized RemoveAnnotations to a single call
2015-07-19 19:59:46 +02:00
Niklas Ulvinge
13d86d4cbc
Some memory management
2015-07-19 01:10:34 +02:00
Niklas Ulvinge
45311e98de
Add multiple polygons at once to increase performance
2015-07-19 00:27:45 +02:00
Nicholas Hallahan
aafcdd2ef0
added ability to specify sprite in marker #1716
2015-07-17 08:25:48 -07:00
Nicholas Hallahan
e84e13a85a
polygon JNI #1716
2015-07-16 17:38:23 -07:00
Nicholas Hallahan
d4407b7b10
creating an annotation segment from a LatLng jlist encapsulated in function #1716
2015-07-16 11:56:27 -07:00
Nicholas Hallahan
d6bc8367e4
color is set for line stroke #1716
2015-07-16 11:09:35 -07:00
Nicholas Hallahan
f911cf3107
successful shape annotation #1716
2015-07-16 10:24:27 -07:00
Nicholas Hallahan
aebd4196ac
attempting to make ShapeAnnotation with segment and properties #1716
2015-07-16 10:08:02 -07:00
Nicholas Hallahan
a203538886
extracting latitude and longitude #1716
2015-07-16 08:03:17 -07:00
Nicholas Hallahan
7954c7d1ab
iterating through list of lat legs #1716
2015-07-16 07:55:10 -07:00
Nicholas Hallahan
61cfcdb33b
turning list into array #1716
2015-07-16 07:50:30 -07:00
Nicholas Hallahan
8589cee9e2
accessing points list #1716
2015-07-16 07:39:14 -07:00
Nicholas Hallahan
062a942c46
JNI - getting all of the primitives from Polyline #1716
2015-07-15 18:08:23 -07:00
Nicholas Hallahan
8107501edb
able to get a field from Polyline in JNI #1716
2015-07-15 17:31:37 -07:00
Nicholas Hallahan
441c84c213
JNI is compiling with the polyline object #1716
2015-07-15 14:29:19 -07:00
Nicholas Hallahan
afcc78a0ab
Able to remove an annotation from the map #1716
2015-07-14 11:11:14 -07:00
Nicholas Hallahan
1ac1ba0e18
Fleshing out Android Annotation API, working on removing annotations through JNI.
2015-07-14 10:45:29 -07:00
Nicholas Hallahan
f710e9607a
Returning annotationIds as long from JNI in addMarker
2015-07-13 18:11:36 -07:00
Nicholas Hallahan
7efa69ff24
Refactored PointAnnotation to be called Markers a la Google Maps
2015-07-13 17:32:05 -07:00
Nicholas Hallahan
92501e3b41
basic single marker point annotation
...
Merge branch 'android-annotations-poc' into android-annotations
2015-07-13 16:32:16 -07:00
Nicholas Hallahan
3ab8e6c0dd
Specifically naming the sprite in JNI adds a marker to the map #1716
2015-07-13 11:59:54 -07:00
Konstantin Käfer
675ddddee7
Make pixelRatio constant across a Map object lifetime
...
also moves framebuffer size out of TransformState into its own object
2015-07-08 10:40:05 +02:00
John Firebaugh
d193083513
Remove duration argument from View::notifyMapChange
...
Fixes #1026
2015-06-26 10:32:07 -07:00
Konstantin Käfer
dca42018d2
drive Android rendering from the main thread via invalidate() calls
2015-06-26 10:32:06 -07:00
Konstantin Käfer
84e2ea886d
drive map rendering from main thread
2015-06-26 10:32:06 -07:00
Nicholas Hallahan
ef31fc5aed
attempting to put one annotation on the map - gets to the native call and then nothing happens
2015-06-20 16:21:41 -07:00
Konstantin Käfer
f4707f72e0
Replace mbgl::util::make_unique<> with std::make_unique<>
2015-05-26 17:57:38 +02:00
John Firebaugh
87b1da7611
DefaultFileSource has responsibility for handling mapbox:// URLs
2015-05-26 12:14:10 +02:00
John Firebaugh
7d4f12434e
Ensure call-once semantics inside InitializeExtensions
2015-05-13 19:01:58 -07:00
John Firebaugh
a2344c36c3
Extensible GL extension support
2015-05-13 19:01:58 -07:00
John Firebaugh
0f7c6b0b52
Remove unused GL feature flags
...
These were used only for prerendered textures, which were removed.
2015-05-13 19:01:57 -07:00
Leith Bade
703e0bc2ee
Ignore deactivate when no valid EGL display. Fixes #1435
...
Initialise NativeMapView's EGL variables before Map
Fix hang
Add check for double pause
Add test for double pause
2015-05-09 12:02:39 +10:00
John Firebaugh
00a1f44cfc
Ensure no GL commands are executed after pause
2015-05-04 18:27:48 -07:00
John Firebaugh
3bf0bf9538
Remove unused includes
2015-04-28 14:32:25 -04:00
John Firebaugh
230027e514
Resize view from map thread
2015-04-28 14:32:24 -04:00
John Firebaugh
a625ba8a09
Remove Map::start/stop
...
Both Android and iOS now use pause/resume. The map thread is
always running, and be able to receive messages. When paused,
it will just refuse to render.
2015-04-28 14:32:24 -04:00
John Firebaugh
6c7a01a503
Following kkaefer's view changes
2015-04-28 14:32:22 -04:00
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
e8389d82cd
guard against concurrent OpenGL extension loading
2015-03-06 15:42:34 +01:00