Commit Graph

5226 Commits

Author SHA1 Message Date
Ansis Brammanis
b4b56c951e increase precision for coordinate conversions
This fixes the earthquakes while panning at high zoom levels.

Cherry-picked from 9607171612c4a40e41eddaff5230ad571571a5b9 on the perspective-improved-gestures branch.
2015-09-11 11:56:25 -07:00
Jason Wray
7782802f37 [iOS] Remove unneccessary pitch check
Fix case where moving the tilted dot off-screen, changing the pitch to 0, and then moving the dot back on screen would not reset the pitch of the dot.
2015-09-11 11:36:32 -07:00
Jason Wray
2a300bd425 [iOS] Pitch the dot, add faux 3D effect to tilted dot and puck
This exposes the naïveté of the current pitch transform: accuracy ring sizing stays constant, despite vertical screen movement. Still, it looks better pitched than not.
2015-09-11 11:36:32 -07:00
Jason Wray
c34d62aca2 [iOS] Move radians/degrees conversion functions to MGLGeometry.h 2015-09-11 11:36:32 -07:00
Jason Wray
c8e80595d8 [iOS] Initial user location puck 2015-09-11 11:36:32 -07:00
Mike Morris
169f580519 [node] update platform/node/CHANGELOG.md [skip ci] 2015-09-11 14:16:42 -04:00
Leith Bade
cdafaf49cf Add missing support libs 2015-09-11 15:47:28 +10:00
Leith Bade
344a7b2ffd Update to Android build tools 23.0.1
Closes #2303
2015-09-11 12:14:45 +10:00
Leith Bade
a9b163fadc Call cancelTransitions when setting map position, zoom level, or direction.
Fixes # 2296
2015-09-11 11:34:04 +10:00
Mike Morris
f9f43fd150 [node] fix links in CHANGELOG.md [skip ci] 2015-09-10 19:40:16 -04:00
Mike Morris
7cc0ef019a [node] update platform/node/CHANGELOG.md [skip ci] 2015-09-10 19:33:07 -04:00
Mike Morris
5a5a5ef4f0 [node] update CHANGELOG.md [skip ci] 2015-09-10 19:28:47 -04:00
Mike Morris
f6648f585e node-v2.0.0-pre.4 [publish binary] 2015-09-10 16:49:55 -04:00
Mike Morris
5b7e2145aa Merge pull request #2299 from mapbox/node-request-callback
[node] change request semantics
2015-09-10 16:47:53 -04:00
Mike Morris
1296f91c82 [node] change request semantics
Passes a second, callback argument to the request implementation instead
of needing to call req.respond.
2015-09-10 15:58:29 -04:00
John Firebaugh
532bbd5484 Add anonymous lambda for HandleScope 2015-09-09 15:06:54 -07:00
Mike Morris
3d48147f2f add io.js v3.x support 2015-09-09 14:57:26 -07:00
Mike Morris
627623edbc Use nan with https://github.com/nodejs/nan/pull/443 fixed 2015-09-09 14:57:15 -07:00
John Firebaugh
0531b38367 Nan 2.0 2015-09-09 14:55:14 -07:00
Brad Leege
aa001f07c3 #2293 - Removing Drawable 2015-09-09 15:15:23 -05:00
Brad Leege
b45b42590f Merge branch 'master' of github.com:mapbox/mapbox-gl-native
# Conflicts:
#	android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java
2015-09-09 15:08:49 -05:00
Brad Leege
93940864ec Merge branch 'master' into 2244-texture-view
# Conflicts:
#	android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java
2015-09-09 14:59:42 -05:00
tobrun
d371dd07cb Changed title dialog 2015-09-09 10:25:35 -07:00
tobrun
290a857b51 Moved icon to the right of Mapbox logo 2015-09-09 10:24:46 -07:00
tobrun
36a754a1fe Using AlertDialog from AppCompat instead of SDKs version 2015-09-09 10:24:46 -07:00
tobrun
e7398c16c1 Added "Improve this map" functionality, current zoom level, center latitude and longitude will be parsed in to the url of improve this map. 2015-09-09 10:24:46 -07:00
tobrun
9a6924435b Added styling to the Attribution AlertDialog 2015-09-09 10:24:46 -07:00
tobrun
f8b8ca7273 Refactored ColorStateList of attribution control to a Drawable selector, added images responding to different states. 2015-09-09 10:24:10 -07:00
tobrunvannuland
75aefb7f9d Added save/restore state for CompassView, LogoView and AttributionView 2015-09-09 10:23:51 -07:00
tobrunvannuland
ea0992b72f Added info icon and map box logo 2015-09-09 10:23:51 -07:00
Justin R. Miller
0d899df9dd fixes #1675: abstract annotation tile refresh check/render; trigger post-sprite/sprite store load 2015-09-08 18:03:10 -07:00
Brad Leege
a6ef907d5e Merge branch '2283-custom-infowindow-handling' 2015-09-08 15:21:57 -05:00
Brad Leege
3f497ff9d2 #2283 - Supporting custom InfoWindow touch listeners via Marker.setInfoWindowOnTouchListener(). Added Test to Custom Annotations in TestApp's MainActivity. 2015-09-08 14:46:18 -05:00
Jason Wray
9a55e97029 Fix build, only ask for location permission on user's instigation
Previously in #2265 we would ask for location permission at app startup if `!settings->showsUserLocation`. #2193 0a172a21fd changed the way we used `NSUserDefaults` and mostly removed the `settings` object, which broke #2265.

Rather than fix our pestering location permissions ask at startup, this commit now only asks for location permissions when the user hits the locate-me button.

Once a user grants permission, the user dot appears because a `userTrackingMode` is set, `showsUserLocation` is permanently set to `YES` in `NSUserDefaults` and is restored at launch.
2015-09-08 11:43:55 -04:00
Leith Bade
8f37502c71 Use MapView as parent for InfoWindow
See comment in #894
2015-09-08 14:01:53 +10:00
Justin R. Miller
704a4e499b #894 - only select/deselect markers on true single-tap 2015-09-07 12:09:48 -07:00
Justin R. Miller
7ed7729cf2 #894 - remove debug log 2015-09-07 12:09:48 -07:00
Justin R. Miller
bac590298a #894 - add lat/lon to marker snippets 2015-09-07 12:09:48 -07:00
Justin R. Miller
d394be0bb8 #894 - remove debug polyline 2015-09-07 12:09:48 -07:00
Justin R. Miller
9210a71fdf #894 - flip marker tap bounds to be top-biased 2015-09-07 12:09:48 -07:00
Justin R. Miller
1fd0cedfd6 #894 - properly extend tap bounds for marker selection 2015-09-07 12:09:48 -07:00
Brad Leege
e8d415367e #894 - Resetting height tolerance to 80 2015-09-07 12:05:50 -07:00
Brad Leege
8f98024f37 #894 - Flipping the Y value to make screen touch event locations line up with marker. Updating marker selection and deselection logic to allow for proper selection and reselection. 2015-09-07 12:05:49 -07:00
Brad Leege
77951eea93 #894 - Moving annotation selection determination to onSingleTapUp() to only run it when it's actual single tap. Fixing newSelectedAnnotationID to be greater than or equals to 0 to handle first annotation case 2015-09-07 12:05:49 -07:00
Brad Leege
902b80888f #894 - Initial port of selectAnnotation and removing auto display of InfoWindow on long press marker addition in TestApp 2015-09-07 12:05:49 -07:00
Brad Leege
4837a247e5 #894 - Initial port of selected annotation api 2015-09-07 12:05:49 -07:00
Brad Leege
f487fa1d5c #894 - Adding snippet text to marker 2015-09-07 12:05:49 -07:00
Brad Leege
1a21a0951a #894 - Closing InfoWindows when the map moves as alerted to via MapChange events 2015-09-07 12:05:49 -07:00
Brad Leege
d256087f04 #894 - Fixing imports from merge from master 2015-09-07 12:05:49 -07:00
Brad Leege
f3962b278f #894 - Placing InfoWindow directly on top of Marker sprite 2015-09-07 12:05:24 -07:00