Brad Leege
d67b88dba9
Merge branch 'release-android-v4.1.0'
...
# Conflicts:
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/BaseMarkerViewOptions.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerView.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/annotations/MarkerViewManager.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java
# platform/android/src/jni.cpp
# src/mbgl/geometry/buffer.hpp
# src/mbgl/geometry/glyph_atlas.cpp
# src/mbgl/geometry/glyph_atlas.hpp
# src/mbgl/geometry/line_atlas.cpp
# src/mbgl/geometry/vao.cpp
# src/mbgl/gl/gl_object_store.cpp
# src/mbgl/gl/gl_object_store.hpp
# src/mbgl/renderer/frame_history.cpp
# src/mbgl/shader/shader.cpp
# src/mbgl/sprite/sprite_atlas.cpp
# src/mbgl/sprite/sprite_atlas.hpp
# src/mbgl/text/glyph_pbf.hpp
2016-06-09 14:00:49 -05:00
Thiago Marcos P. Santos
b711979e32
[android] #5254 - fix ARMv5 support
...
Backported patches fixing ARMv5 support for issue #3985 .
2016-06-06 23:31:51 +03:00
Konstantin Käfer
c3cbe67c01
[core] code style and remove unused code
2016-06-06 17:55:01 +02:00
Bruno de Oliveira Abinader
650b988874
[core] Perform GL object store cleanup on low memory
2016-06-03 11:03:16 +03:00
John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
d7e1ecd19e
[core] Generalize Map::{add,remove}CustomLayer
2016-06-02 14:51:39 -07:00
John Firebaugh
a43940afb2
[core] Runtime style layer API
2016-06-02 14:51:39 -07:00
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
John Firebaugh
8985b1311b
[core] Use geometry.hpp types for shape annotations
2016-06-01 17:36:50 -07:00
Bruno de Oliveira Abinader
2038a21cb5
[core] s/GLObjectStore/ObjectStore/
2016-06-01 13:53:39 +03:00
Bruno de Oliveira Abinader
1769e6fcb4
[core] Move GLFW stencil clip debug to core
...
This makes the stencil clip debug available to all platforms.
Fixes #4669 .
2016-05-24 19:58:24 +03:00
Konstantin Käfer
7272d7c84c
[core] move *Observers to their own files
2016-05-23 18:04:31 +02:00
Bruno de Oliveira Abinader
7143408f69
[core] Implement MapDebugOptions::Wireframe
...
Together with MapDebugOptions::Collision, provides "wireframe" rendering
output so all drawn objects are visible. This mode ignores the line
width, background and fill colors for better visualization.
Fixes #4359 .
2016-05-23 11:50:05 +03:00
Konstantin Käfer
002393bdea
[core] remove MockView and View dependency in Transform
2016-05-18 12:07:21 +02:00
John Firebaugh
3e21e3887a
[core] Introduce StyleQueryParameters; push coordinate calculations into Source
2016-05-17 13:20:25 -07:00
John Firebaugh
8ec0b70722
[core] Use mapbox::geometry::box in queryRenderedFeatures
2016-05-13 09:01:32 -07:00
Bruno de Oliveira Abinader
c13dd32242
[core] Added Viewport mode
...
Satisfies embedding platforms that requires the viewport coordinate
systems to be set according to its standards e.g. viewport mirrored
vertically.
2016-05-11 15:48:51 +03:00
John Firebaugh
9330d674a9
[core] Use geometry.hpp's point
2016-05-05 11:30:53 -07:00
Brent W
7e6995d153
[core] Merge pull request #4914 from bwhtmn/camera-padding
...
Fix a bug in applying padding to the camera.
Fixes #4862 .
2016-05-04 01:28:27 -07:00
John Firebaugh
c8391729c7
[core] Use geometry.hpp feature type
2016-05-03 17:25:49 -07:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
Minh Nguyễn
466ed55200
[core, ios, osx] cameraThatFitsCoordinateBounds
...
Added an API to get a camera that you can pass into -[MGLMapView setCamera:] that fits the given coordinate bounds, by analogy with -[MKMapView regionThatFits:] or -[MKMapView mapRectThatFits:edgePadding:].
Added mbgl::Map::getCameraOptions() for getting the current camera options more conveniently.
2016-04-22 16:39:25 -07:00
Thiago Marcos P. Santos
d51944fbea
[core] Don't copy TransformState ( #3501 )
2016-04-15 12:17:19 -07:00
John Firebaugh
1ee0055710
[core] Eliminate MapData
2016-04-15 09:56:18 -07:00
John Firebaugh
9d18d65eda
[core] Remove MapData dependency from Painter
2016-04-15 09:56:18 -07:00
John Firebaugh
ed489e7649
[core] Remove MapData dependency from Style
2016-04-15 09:56:18 -07:00
John Firebaugh
ce4270b01c
[core] Convert MapContext to Map::Impl; eliminate indirection
2016-04-15 09:56:18 -07:00
John Firebaugh
204c7fee03
[core] Render from the main thread
...
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
Thiago Marcos P. Santos
2d580364a6
[core] Do the MapContext::cleanup() synchronously
...
This used to be async assuming the libuv behavior of holding the
main loop until all the messages are processed and also for avoiding
a deadlock at exit that no longer exits.
Now that we support multiple main loops implementation on different
platforms, we do the cleanup synchronously to make sure all the
platforms have the same behavior at exit.
Fixes #4631
2016-04-12 20:15:25 +03:00
John Firebaugh
5eda74a514
Merge branch 'release-ios-3.2.0-android-4.0.0'
2016-03-30 17:43:37 -07:00
John Firebaugh
7b5a1ca167
[core] Localize and simplify state for MapChangeDidFinishLoadingMap event
...
Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
2016-03-30 13:53:31 -07:00
Bruno de Oliveira Abinader
cd1a06c2dc
[core] Get rid of MapData::{get,set}animationTime
2016-03-18 01:27:48 +02:00
Bruno de Oliveira Abinader
c6ba05bbc3
[core] Default fade duration is now a constant
2016-03-18 01:27:47 +02:00
Bruno de Oliveira Abinader
8f96dea822
[core] Remove default transition duration
2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
f736e46ca4
[core] s/Update::Zoom/Update/RecalculateStyle/
2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
4909169996
[core] Added user-defined transition properties when modifying classes
2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
94de5d7f4a
[core] Remove MapData::defaultTransitionDelay
2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
01edd4503c
[core] Move class handling to Style
2016-03-18 01:26:22 +02:00
Bruno de Oliveira Abinader
8e30a4a080
[core] Harden Transform anchor & padding usage
...
Use optional values for anchor & padding in Map and Transform functions
instead of NaNs. Added unit tests to stress some edge cases.
2016-03-13 21:38:20 +02:00
Bruno de Oliveira Abinader
7ced8e97ba
[core] Reset pitch in Map::resetPosition
2016-03-03 17:02:15 +02:00
Bruno de Oliveira Abinader
4994b3dc57
[core] PrecisionPoint is now ScreenCoordinate
2016-03-01 20:58:54 +00:00
Bruno de Oliveira Abinader
411a562061
[core] Enforce constants usage
...
Use 'LATITUDE_MAX', 'LONGITUDE_MAX', 'DEG2RAD' and 'RAD2DEG' whenever
possible.
2016-03-01 20:58:54 +00:00
Minh Nguyễn
17f44d7bd9
Merge branch 'release-ios-v3.1.0'
2016-02-24 09:06:43 -08:00
Gabriel Miklós
d742c2d3eb
[core] Add support for updating point annotations
2016-02-12 16:47:24 -08:00
Minh Nguyễn
bd59ab9a52
[core, ios, osx] Only constrain after adding to a window
...
Introduced a setter/getter for constrain mode. On iOS and OS X, the zoom level inspectable causes the zoom level to be set independently from the longitude and latitude. Thus, the latitude inspectable had no effect because the latitude was constrained to 0 at z0. Temporarily removing the heightwise constraint allows the map to center on the intended location before zooming, which is the usual case for storyboards and XIBs. On iOS, the only guarantee we have timing-wise is that all the inspectables are applied after initialization but before the view is added to a window. So we reimpose the heightwise constraint as soon as the view is added to a window, that is, before the user has a chance to pan the map out of bounds.
Fixes #3868 .
2016-02-10 15:15:29 -08:00
John Firebaugh
37c27f3a8f
[core] Improve LatLngBounds API
...
* Use "named constructors": empty, world, hull
* Make the two-argument constructor lenient (i.e., it is a hull operation)
* Add various accessors
* Enforce a single empty representation
2016-02-02 23:04:18 -08:00
John Firebaugh
032c8fba3c
[core] Remove unused
2016-02-02 20:20:47 -08:00
John Firebaugh
82d67d6912
[core] Remove unused
2016-02-02 18:53:37 -08:00
Ansis Brammanis
1644234179
[core] add setMaxZoom, setMinZoom
...
also change the default maxZoom to 20 to match -js.
2016-01-28 15:10:01 -08:00