Justin R. Miller
772238a229
fixes #2044 : add -showAnnotations:animated:
2015-08-12 14:45:37 -07:00
Leith Bade
d4159d5141
Merge branch 'android-okhttp'
2015-08-12 14:58:33 +10:00
Justin R. Miller
01b5636df0
fixes #1951 : check for support of title before querying
2015-08-11 15:10:55 -07:00
Konstantin Käfer
aa06a9d587
query the monitor's resolution instead of forcing 1024x768
2015-08-11 16:40:40 +03:00
Konstantin Käfer
21ec505648
add benchmark mode that shows the real frame time rather than the vsync time
2015-08-11 16:40:40 +03:00
Leith Bade
0cbe7e07f5
Use OkHTTP to implement HTTPContext on Android.
...
Closes #823
2015-08-11 11:59:08 +10:00
Jason Wray
dc11b8132b
Improve accuracy ring update checks
2015-08-10 17:36:23 -04:00
Jason Wray
26d300b4f4
Refactor user location annotation
...
Adds:
- Accuracy ring
- Heading indicator
Fixes:
- Pulse sync
- Visual appearance (removes slight aliasing)
Closes #1222 (squashed)
2015-08-10 17:36:22 -04:00
Konstantin Käfer
76c937f119
set thread priority on Linux
2015-08-10 12:01:26 +03: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
Thiago Marcos P. Santos
92d78eae38
Removed debug leftover
2015-08-05 14:56:48 +03:00
Konstantin Käfer
56a4268cca
manually premultiply the image if libpng can't do it
2015-08-04 18:49:51 +02:00
Konstantin Käfer
19e5d9af22
don't require PNG_ALPHA_PREMULTIPLIED to support older versions of libpng
2015-08-04 14:08:20 +02:00
Konstantin Käfer
daaa643bbf
support cURL versions older than 7.21.6
...
prior to cURL 7.21.6, CURLOPT_ACCEPT_ENCODING was called CURLOPT_ENCODING
2015-08-04 14:08:20 +02:00
Konstantin Käfer
78ec33320f
don't use certain STL functions
...
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
2015-08-04 14:08:19 +02:00
Minh Nguyễn
807d87f0f5
Ignore redundant initial reachability notification on iOS 9
...
Fixes #1911 .
2015-07-28 21:21:31 -07:00
Bruno de Oliveira Abinader
3c43171bc0
s/AssetContext/AssetContextBase/
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
0cc69b368d
s/HTTPContext/HTTPContextBase/
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
e42a903bba
Replaced 'override' with 'final' for non-public interfaces
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
590d9ab95c
Created HTTPRequestBase as base for HTTP requests
...
- Added HTTPRequestBase (inherits from RequestBase)
- retry() is now a pure virtual in HTTPRequestBase
- Moved cancelled bool to HTTPRequestBase
- HTTPContext now handles only HTTPRequestBase*
- Renamed HTTPNSURLRequest, HTTPCURLRequest
2015-07-28 19:27:13 +03:00
Bruno de Oliveira Abinader
785b34df2e
Moved ResponseStatus to its own header
2015-07-28 19:27:13 +03:00
Minh Nguyễn
3a310c916b
Update the user dot when the user moves
...
Rolled back part of ed04e6d9f7 for #1852 .
Fixes #1933 .
2015-07-27 14:23:59 -07:00
Bruno de Oliveira Abinader
5e2f3b1323
Avoid nudging transitions if a gesture is in progress #2
...
Following the same steps from #1548 and #1912 for GLFW and iOS ports.
Also removed a redundant check if transform state is changing since
we're already dealing with that.
2015-07-27 21:57:51 +03:00
Minh Nguyễn
32c7805740
Ignore invalid location updates
...
Avoid passing invalid locations along to the map view delegate or user location annotation.
Also, If the user wants to visit the Prime Meridian or Equator, that’s their prerogative. Mapbox GL should show them where they’re at. Null Island is a different story.
Fixes #1912 .
2015-07-24 15:53:10 -07: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
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
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
Minh Nguyễn
1f78d28516
Merge branch 'release-v0.5.0'
2015-07-14 10:49:52 -07:00
Thiago Marcos P. Santos
938165de17
Re-enable the Satellite style on the Linux/OSX app
2015-07-14 14:26:40 +03:00
Minh Nguyễn
f96fef8292
Create GLKView before binding it and resuming
...
Or: don’t resume the map until the application has entered the foreground.
UIApplicationWillEnterForegroundNotification is posted before UIApplicationDidBecomeActiveNotification, while the application is still in the background. That caused -createGLView to bail but did not cause the rest of -wakeGL: to bail. We would create the GLKView only after attempting to bind it (a no-op), resulting in a black view.
Fixes #1855 .
2015-07-11 15:38:59 -07:00
Thiago Marcos P. Santos
00308be140
Make one arg ctors explicit
2015-07-11 12:42:45 +03:00
Thiago Marcos P. Santos
bd8210d5a1
Remove unused function: elapsed()
2015-07-11 12:42:45 +03:00
Thiago Marcos P. Santos
67554cae41
Remove unused function: uv_zip_open()
2015-07-11 12:42:45 +03:00
Minh Nguyễn
06fd6d5c1e
Cherry-picked part of 987d961e5b to fix the build
2015-07-10 11:42:46 -07:00
Justin R. Miller
2df80af3d3
Revert "Defer initialization until app enters foreground"
...
This reverts commit 0fd9fe78db .
2015-07-09 13:41:42 -07:00
Justin R. Miller
00f9a477b7
abbreviate syntax for unused parameters
2015-07-08 22:58:50 -07:00
Minh Nguyễn
0fd9fe78db
Defer initialization until app enters foreground
...
Defer the creation of EAGLEContext and GLKView and the loading of OpenGL ES extensions. It is GLKView that drives the background crash, and Apple documentation specifically warns not to initialize an EAGLContext in the background. All the while, it should be safe for client code to avail itself of any public methods on MGLMapView.
Fixes #1460 .
2015-07-08 15:40:15 -07:00
Minh Nguyễn
1a3ae88786
Defer initialization until app enters foreground
...
Defer the creation of EAGLEContext and GLKView and the loading of OpenGL ES extensions. It is GLKView that drives the background crash, and Apple documentation specifically warns not to initialize an EAGLContext in the background. All the while, it should be safe for client code to avail itself of any public methods on MGLMapView.
Fixes #1460 .
2015-07-08 14:53:11 -07:00
Minh Nguyễn
49fe6df0db
Assert if -mapView:symbolNameForAnnotation: is implemented
...
Fixes #1851 .
2015-07-08 14:39:27 -07:00
Minh Nguyễn
b3ea068e5d
Assert if -mapView:symbolNameForAnnotation: is implemented
...
Fixes #1851 .
2015-07-08 13:49:02 -07:00
Justin R. Miller
a67e80219f
refs #1125 , 1813: update user dot tracking in one place
...
Now that we have cleanup around the map viewport change notifications,
this only needs to happen in one place: the GL frame draw loop.
2015-07-08 12:55:39 -07:00
Justin R. Miller
ed04e6d9f7
refs #1125 , 1813: update user dot tracking in one place
...
Now that we have cleanup around the map viewport change notifications,
this only needs to happen in one place: the GL frame draw loop.
2015-07-08 12:21:40 -07:00
Justin R. Miller
b8388168dd
split renderSync and transition nudging to allow client view syncing
2015-07-08 12:10:12 -07:00
Justin R. Miller
fb230dda51
clean up remainder of sprite removal for now
2015-07-08 19:46:04 +02:00
Justin R. Miller
c7011345c9
remove logging
2015-07-08 19:46:04 +02:00
Justin R. Miller
e0da13dbfd
fixes for runtime Cocoa imagery
2015-07-08 19:46:04 +02:00
Justin R. Miller
5f9e675ee0
stub annotation symbol cleanup
2015-07-08 19:46:03 +02:00
Justin R. Miller
5ab58deb44
Cocoa custom marker imagery API
2015-07-08 19:46:03 +02:00