Commit Graph

4631 Commits

Author SHA1 Message Date
Brad Leege
d975d94de2 #1929 - accessToken added as XML attribute option. Removed call to raw.txt for access token from MapFragment to test. 2015-07-24 14:36:57 -05:00
Brad Leege
2fd7a24576 #1929 - Removed validateAccessToken() call from MapView.onCreate() 2015-07-24 14:06:38 -05:00
Brad Leege
791c59d899 #1915 - Adding NonNull annotations to accessToken for development warnings and isEmpty() checks for more accurate runtime errors 2015-07-24 13:40:41 -05:00
Bruno de Oliveira Abinader
3512da9609 Avoid nudging transitions if a gesture is in progress
We're now using nudgeTransitions() to tell the Map view that we want to
update it. However, if we're on a gesture movement, the update() call
can get called too fast and causing general slowdown. This check ensures
we only call for nudgeTransitions() after all gesture events are
finished. Fixes the issue pointed out by #1548 on Android.
2015-07-23 17:43:05 +03:00
Justin R. Miller
7b47fa8dab [publish ios-v0.5.3] 2015-07-22 18:03:30 -07:00
Justin R. Miller
f79a35a5ef bump podspec to 0.5.3 2015-07-22 18:03:05 -07:00
Justin R. Miller
45180599a2 Merge pull request #1910 from mapbox/1ec5-styles-mb-pages
Move mapbox/mapbox-gl-styles to mb-pages branch
2015-07-22 18:02:09 -07:00
Brad Leege
73d6c62f60 Merge branch 'android-annotations' of git://github.com/TrueFlow/mapbox-gl-native into TrueFlow-android-annotations 2015-07-22 13:41:17 -05:00
Brad Leege
0e2168734f #1668 - Adding fabric.properties to .gitignore 2015-07-22 13:19:06 -05:00
Brad Leege
0955fb6c5b #1668 - Integrating Crashlytics / Fabric into project 2015-07-22 10:56:08 -05:00
Brad Leege
93e1ced3bb Merge branch 'android-annotations' of git://github.com/hallahan/mapbox-gl-native into hallahan-android-annotations 2015-07-22 10:15:34 -05:00
Minh Nguyễn
368369ba60 Moved mapbox/mapbox-gl-styles to mb-pages branch
When packaging, filter to just the desired styles.
2015-07-21 16:36:03 -07:00
Bruno de Oliveira Abinader
38f3bed63e Export default transition delay in Map public API
Added a setter/getter for default transition delay, in the same fashion
as the default transition duration.

Spin-off from #1888. Fixes #302.
2015-07-21 18:02:09 +03:00
Niklas Ulvinge
d7d816cb67 SetSprite now works 2015-07-20 23:15:53 +02:00
Bruno de Oliveira Abinader
0b8cd02c19 GLFW port now uses nudgeTransitions() 2015-07-20 21:59:13 +03:00
Bruno de Oliveira Abinader
784eb35512 Revert "Revert "split renderSync and transition nudging to allow client view syncing""
This reverts commit 263f9fad30.
2015-07-20 21:59:13 +03:00
Niklas Ulvinge
42cd266aa6 Correction colors transformation 2015-07-20 20:34:42 +02:00
Justin R. Miller
fad241f8cf Merge pull request #1831 from mapbox/set-collision-debug-too
Set collision debug with -[MGLMapView setDebugActive:], too
2015-07-20 11:21:17 -07:00
Bruno de Oliveira Abinader
f034a028be s/AppliedClassProperties/AppliedClassPropertyValues/
This class stores a list of property values which belongs to the same
property.
2015-07-20 18:14:24 +03:00
Bruno de Oliveira Abinader
51403b3c8b Cleaned up FrameHistory 2015-07-20 18:14:24 +03:00
Bruno de Oliveira Abinader
263f9fad30 Revert "split renderSync and transition nudging to allow client view syncing"
This reverts commit b8388168dd.

It seems 'nudgeTransitions()' is no longer necessary as #1548 has fixed the update issues.
2015-07-20 17:07:55 +03:00
Bruno de Oliveira Abinader
0753aad57b Check for pending animations or transitions when scheduling another render pass
In continuous mode, we need to check if there are any pending animations or
transitions so we can properly tell the client application that another render
pass is required.
2015-07-20 14:38:19 +03: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
0f56c2b0d5 marker equals method #1716 2015-07-17 13:12:47 -07:00
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