Commit Graph

99 Commits

Author SHA1 Message Date
Tobrun
83d39364f9 [android] #2552 add 10000 markers 2015-10-22 17:18:49 +02:00
Manabu Shimobe
d4aebbf879 add missing DPI bitmaps and update based on code review comments 2015-10-22 20:00:18 +09:00
Manabu-GT
84c8d1fd6e add setSetVisibleCoordinateBounds api as already in iOS 2015-10-22 19:58:52 +09:00
Leith Bade
927b4c6dbe [android] Refactor annotations API
Remove unimplemented properties.
Correct defintions of equals() and hasCode().
Add setOnInfoWindowClickListener and remove old method from Marker.
Refactor showInfoWindow() to remove need for exposing internal method.
Make select/deselectMarker public. Add getSelectedMarker.
Fix bug where you couldn't reselect a closed info window.
Add empty constructor to LatLng and LatLngZoom.
Fixes #2546
Fixes #2631
Fixes #2448
2015-10-22 20:00:43 +11:00
Leith Bade
8b79a8d6e6 [android] Implement UserLocationView
Draws animated and synced GPS marker.
Inlcudes direction arrow and accuracy ring.
Fade out the compass after a delay when reset to north.
Lots of other performance and memory improvements.
add OnMyLocationChangeListener
Move FAB with snackbar
Fix getMetersPerPixelAtLatitude
Fix some incorrect annotations
Fixes #2668
Fixes #2411
Fixes #2678
Fixes #2675
Fixes #2566
Fixes #2549
Fixes #2692
Fixes #2572
2015-10-22 17:07:10 +11:00
Leith Bade
2daa5f14a8 [android] Fix bug in setSprite when calculating pixel data size
Change Marker sprite() to icon() and use Sprite class
Load a Maki dog icon in test app
Fixes #2506
2015-10-22 16:18:13 +11:00
John Firebaugh
c5b95032a5 [core] Annotation refactor 2015-10-20 13:54:19 -07:00
Leith Bade
2ee7b02189 [core] [android] Fix InfoWindow topOffsetPixels adjustment when switching styles
Fixes #2599
Make getTopOffsetPixelsForAnnotationSymbol private
Also implements MapChangeWillStartLoadingMap, MapChangeDidFinishLoadingMap
Paritally implements #630
2015-10-16 13:06:49 +11:00
Leith Bade
0c7490cfb7 [android] Tidy up MapView API
For #2545
2015-10-09 15:31:58 +11:00
Brad Leege
bf440de7f8 #2486 - Fixing JNI references to new package structure 2015-10-01 18:10:12 -05:00
Tobrun
f43e01bb3c Initial native add markers implementation
Added addMarkers to jni.ccp, exposed addMarkers in MapView, updated example using this new method
2015-10-01 21:36:13 +02:00
Leith Bade
85ec3eb0a5 Refactor Android render loop to limit frame rate to 60 FPS
Move expensive cache size calulation to initialisation
Fix setGestureInProgress bug
Renamed several functions to match current usage
Refactor map updates to reduce GPS marker lag
Fixes #1676
Fixes #2290
Fixes #2396
2015-09-24 18:04:26 +10:00
Leith Bade
2c4a9f6a3b Refactor NativeMapView to hold std::unique_ptr to Map and DefaultFileSource
Add missing asserts to attach_jni_thread/detach_jni_thread
Fixes #2406
2015-09-24 12:22:19 +10:00
Brad Leege
1644f51873 #894 - Wiring up getTopOffsetPixelsForAnnotationSymbol in JNI 2015-09-07 12:05:24 -07:00
Justin R. Miller
e78eacefdb plumb map notifications through JNI to Android 2015-09-04 10:00:44 -07:00
Leith Bade
f772973847 Tidy up missing JNI deletes 2015-09-02 10:20:11 +10:00
Justin R. Miller
bcfce808ca implement annotation marker tap recognition in Android 2015-08-28 15:29:04 -07:00
Leith Bade
5abb18a99c Implement setGestureInProgress on Android 2015-08-13 13:36:41 +10:00
Leith Bade
0cbe7e07f5 Use OkHTTP to implement HTTPContext on Android.
Closes #823
2015-08-11 11:59:08 +10:00
Bruno de Oliveira Abinader
fa4636ffe4 Map::nudgeTransitions no longer depends on client information
Clients no longer need to provide data (eg. if gesturing or in a custom
animation) to Map::nudgeTransitions().

Upon MapContext::renderSync(), a new atomic bool 'needsRepaint' in MapData
allows thread-safe communication between Map and MapContext.
2015-08-05 15:19:00 +03:00
Bruno de Oliveira Abinader
492bcf0bd7 Added Update::Repaint 2015-08-05 15:19:00 +03:00
Leith Bade
ab7456075c First pass at tidying up Android annotation code 2015-08-04 13:52:08 +10:00
Leith Bade
d57a02f3a9 First pass at updating JNI bindings
Hook up collisionDebug, isFullyLoaded, onLowMemory in Android
Rename class to styleClass in Java to match iOS
Fixed some formatting
Fixes #1905
Fixes #1946
Fixes #1263
2015-07-29 12:17:42 +10:00
Justin R. Miller
3f2f9d26c8 Merge pull request #1926 from trappsnl/master
fix latLngForPixel on Android
2015-07-28 17:55:05 -07:00
Koen Schmeets
50c0684de0 Merge branch 'master' of https://github.com/mapbox/mapbox-gl-native 2015-07-24 02:56:47 +02:00
Koen Schmeets
6d3cad7757 Fix latLngForPixel bindings for Android 2015-07-24 02:54:55 +02: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
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