Nicholas Hallahan
5363fc8dc0
commenting #1716
2015-07-17 11:13:31 -07:00
Thiago Marcos P. Santos
234a653931
Use the observer pattern for GlyphPBF loading
...
This will make the code a lot more clear and it will
also move how parsing is initiated to the GlyphPBF
class, to be initiated after the request, like we do
for other resources.
2015-07-17 21:00:34 +03:00
Thiago Marcos P. Santos
dbf3edad8a
Add docs to WorkQueue and GlyphStore
2015-07-17 20:58:38 +03:00
Nicholas Hallahan
d5eca7b8d1
Merge remote-tracking branch 'mapbox/master' into android-annotations #1716
2015-07-17 09:48:22 -07:00
Nicholas Hallahan
aafcdd2ef0
added ability to specify sprite in marker #1716
2015-07-17 08:25:48 -07:00
Nicholas Hallahan
ed650b4128
showing polygon, line, and markers together #1716
2015-07-16 18:26:58 -07:00
Nicholas Hallahan
e1cdc8209c
yay, polygon! #1716
2015-07-16 18:04:46 -07:00
Nicholas Hallahan
e84e13a85a
polygon JNI #1716
2015-07-16 17:38:23 -07:00
Nicholas Hallahan
0df1d64823
toggle removes all annotations. ready for polygon JNI #1716
2015-07-16 15:09:56 -07:00
Nicholas Hallahan
9e3f60756f
Java Annotation API cleaner #1716
2015-07-16 14:52:54 -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
e28c777307
drawing geojson line #1716
2015-07-16 11:31:01 -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
Thiago Marcos P. Santos
38351554f4
Only print Sprite warnings if we have Sprites set
...
If we don't set Sprites at all or the Sprites were not
loaded yet, the warnings can be misleading.
2015-07-16 20:15:14 +03:00
Nicholas Hallahan
aebd4196ac
attempting to make ShapeAnnotation with segment and properties #1716
2015-07-16 10:08:02 -07:00
Thiago Marcos P. Santos
dd818874cc
Remove hacks because of Glyph requests could not be canceled
2015-07-16 19:38:39 +03:00
Thiago Marcos P. Santos
cd2c1200c8
Add GlyphStore unit tests
2015-07-16 19:38:39 +03:00
Thiago Marcos P. Santos
a75cc8c06b
Make Glyph requests from the Map Thread
...
Now the requests are bound to the Map Thread loop and
we can cancel it quickly when shutting down or changing
style.
Previously requests were made by the workers and we would
have to wait them to finish because workers are destroyed
before the GlyphStore. This was giving the impression that
the application was frozen (in fact it was, momentarily).
2015-07-16 19:38:39 +03:00
Thiago Marcos P. Santos
c6e58515fc
Keep updating until all the tiles are State::parsed
...
This is needed because of a race that can occur now that we
requests Glyphs from the Map Thread:
The glyph might arrive at the moment a tile is being parsed
and they won't be notified again of any new data, remaining
forever at the partial state.
2015-07-16 19:38:38 +03:00
Thiago Marcos P. Santos
7d4349e308
Added unit tests for the WorkQueue
2015-07-16 19:38:38 +03:00
Thiago Marcos P. Santos
7d500e9330
Introduce the WorkQueue
...
The WorkQueue allow other threads to submit tasks to be executed in
the thread that the WorkQueue lives on.
The WorkQueue will cancel all the pending tasks when it gets
destructed, to make sure the tasks won't get called with
invalid references.
2015-07-16 19:38:35 +03: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
6335aecfad
constructs polyline object, ready to rock JNI #1716
2015-07-15 12:29:57 -07:00
Nicholas Hallahan
297190ecf1
working on pollens #1716
2015-07-15 10:36:24 -07:00
Thiago Marcos P. Santos
70aea89e13
Add an interface for invoking cancellable tasks on the RunLoop
...
This is interface is going to be used the WorkQueue in the following
patches.
2015-07-15 16:16:51 +03:00
Nicholas Hallahan
82e88a6a77
parsed coordinates from geojson, ready to add polyline via JNI #1716
2015-07-14 19:18:34 -07:00
Nicholas Hallahan
7c5fde4a3e
Fleshed out the shell of the Google Maps API #1716
2015-07-14 17:04:13 -07:00
Minh Nguyễn
3c1d46113e
[publish ios-v0.5.2]
2015-07-14 11:29:02 -07:00
Nicholas Hallahan
afcc78a0ab
Able to remove an annotation from the map #1716
2015-07-14 11:11:14 -07:00
Minh Nguyễn
38d8d1820d
Bumped podspec to 0.5.2 with symbols
2015-07-14 10:55:36 -07:00
Minh Nguyễn
1f78d28516
Merge branch 'release-v0.5.0'
2015-07-14 10:49:52 -07:00
Nicholas Hallahan
1ac1ba0e18
Fleshing out Android Annotation API, working on removing annotations through JNI.
2015-07-14 10:45:29 -07:00
Bruno de Oliveira Abinader
bef3e1590b
Force style cascade in MapContext::loadStyleJSON
...
Fixes #1889 .
2015-07-14 18:12:52 +03:00
Bruno de Oliveira Abinader
0ea8a37cb0
Unify default transition values in MapData
...
Relevant changes:
- Added 'defaultFadeDuration' and 'defaultTransitionDelay' to MapData;
- Painter & StyleParser now receives a reference to MapData;
- As previously seen on the code: 300ms is the default fade duration
and 0ms is the default transition duration;
- We no longer pass the current time point to Style, since it now uses
MapData.animationTime, which gets updated in MapContext::update().
- Updated StyleParser check to use a mock MapData;
2015-07-14 16:58:32 +03:00
Bruno de Oliveira Abinader
2aad2f4e14
Pass {Duration,TimePoint} by const ref if possible
2015-07-14 16:48:34 +03:00
Bruno de Oliveira Abinader
7d8b4dc6c0
s/properties/propertyValues/
...
This list stores different values for the same property, but the
property itself remains the same.
2015-07-14 16:44:42 +03:00
Bruno de Oliveira Abinader
7023ea061c
Unify time point for Mapcontext::update
...
- Let style classes cascade use the same time point as the one used to
recalculate style.
- Cleaned up MapContext::update to return early whenever possible.
- Cleaned up MapContext::loadStyleJSON to avoid redundant calls to style
classes cascade.
2015-07-14 16:44:42 +03:00
Bruno de Oliveira Abinader
77a91f64d8
Micro-optimizations to Style
2015-07-14 16:43:07 +03:00
Thiago Marcos P. Santos
938165de17
Re-enable the Satellite style on the Linux/OSX app
2015-07-14 14:26:40 +03: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
Minh Nguyễn
27bd305b1b
Include iOS README in binary pod
2015-07-13 14:25:10 -07:00