John Firebaugh
d618d4a274
[core] Dynamic program compilation for data-driven properties
2017-06-14 11:13:43 -07:00
Bruno de Oliveira Abinader
0d171dbe0e
[core] Make TransformState LatLngBounds optional
2017-06-01 13:46:53 -04:00
John Firebaugh
c2b00378b7
[all] Push querySourceFeatures back out to Map
...
Once Source and RendererSource are split, Source will no longer have access to tiles.
2017-05-02 08:45:09 -07:00
Lauren Budorick
f6e79d7073
[core] Render fill-extrusion layers ( #8431 )
2017-04-27 15:56:55 -07:00
John Firebaugh
5dd98df50b
[all] Rationalize style::Image
...
A style has a collection of images, just as it has collections of sources and layers.
* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00
John Firebaugh
092da9c956
[core] Remove non-Map-dependent projection methods from Map
2017-04-18 14:43:31 +03:00
John Firebaugh
f1c06f8d83
[all] Remove redundant scale-related camera methods
...
We don't need to have two different measurement systems for map zoom.
2017-04-13 10:28:44 -07:00
John Firebaugh
62576e24a0
[core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural "empty" state
2017-04-11 14:50:22 -07:00
Bruno de Oliveira Abinader
c4fc89977b
[core] Added {set,get}{Min,Max}Pitch
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
c1c6c1e298
[core] Added Map::{get,set}LatLngBounds
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
ddc6dcf9cd
[core] Move {Map,Transform}::{get,set}{Min,Max}Zoom to bounds pragma
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
80915992ab
[core] Added Map::latLngBoundsForCamera
2017-03-24 13:51:35 +02:00
Konstantin Käfer
3c91b6b7de
[core] cache binary shaders on Android
2017-03-22 15:59:10 +01:00
Bruno de Oliveira Abinader
fc70cbf1e1
[core] Replace MapChange enum with MapObserver
2017-03-15 14:53:32 +02:00
Ivo van Dongen
548675a196
[core] rename query options for query rendered features
2017-03-09 13:11:23 -08:00
Asheem Mamoowala
60d10dd27d
[core] Add support for queryRenderedFeatures filter
2017-03-04 15:42:07 -08:00
Tobrun
34fef22d95
[core] [android] - allow zooming/scaling to use AnimationOptions ( #8181 )
...
[glfw] - allow glfw binding to use AnimationOptions instead of using direction directly
2017-02-28 13:22:47 -05:00
Tobrun
a0992f0550
[core] - allow moveBy to use AnimationOptions
...
[android] - update jni bindings for moveBy with an interpolator
2017-02-20 16:52:18 -08:00
Jason Wray
4c311a0091
[core] Expose Map::setZoom with anchor parameter
2017-02-13 18:35:04 -05:00
Minh Nguyễn
a6b1773a44
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
...
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
Roman Blum
1045934d5e
[core, ios, macos] Add image accessor to MGLStyle ( #7096 )
...
* [core] Add interface to get image from sprite atlas
* [tests] Add tests for Map::getImage
* [ios, macos] WIP: get MGLImage for name from style
* [ios, macos] Fixed -imageForName:
Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
2016-12-05 17:16:13 -08:00
Minh Nguyễn
3503c0e767
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-master
2016-12-03 15:36:42 -08:00
Minh Nguyễn
850b70ff91
[core, ios, macos] Added layers and sources properties to MGLStyle
...
Added new layers and sources properties to MGLStyle that contain all the style’s layers and sources, respectively. These properties are KVC-compliant with all the mutable to-many methods. Layers are ordered from topmost to bottommost, for consistency with Cocoa APIs where front/first means top and back/last means bottom.
Also added storage for mbgl::style::Source in MGLSource proper for wrapping AnnotationSource. Until the style finishes loading, its name property is set to nil.
Fixes #6003 .
2016-11-28 15:45:37 -08:00
Jesse Bounds
96a7a4402e
[core] Return source and layer ownership ( #7014 )
...
When a source or layer is removed transfer ownership back to the
caller so it can (optionally) take it. Preserve the behavior that
removing a CustomLayer triggers deinitialization. Deinitialize all
custom layers when a style is destroyed in case those layers are not
explicitly removed.
2016-11-13 19:56:29 -08:00
Jesse Bounds
edf40bb6d9
[core] Return source and layer ownership ( #7014 )
...
When a source or layer is removed transfer ownership back to the
caller so it can (optionally) take it. Preserve the behavior that
removing a CustomLayer triggers deinitialization. Deinitialize all
custom layers when a style is destroyed in case those layers are not
explicitly removed.
2016-11-11 14:40:04 -08:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Konstantin Käfer
a4d259c33f
[core] move gl::Context to Backend and refactor View
2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694
[core] separate Backend from View for headless rendering
2016-10-25 13:52:36 -07:00
Mike Morris
817c26111a
[core] [node] pass thread pool impl to Map constructor
...
Updates mbgl::Map constructor usage everywhere
Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Minh Nguyễn
7ff036cd01
[core] Removed map attribution API
...
Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
2016-09-26 15:42:57 -07:00
Minh Nguyễn
f307652548
[core] Source-driven attribution
...
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution.
Fixes #2723 .
2016-09-26 11:37:06 -07:00
Thiago Marcos P. Santos
486bdddb23
[core] Add interface to add sprites to the style
...
Unlike annotations, they will go away when we change the style.
2016-09-22 17:43:28 +03:00
Bruno de Oliveira Abinader
beb67fb7b2
[core] Separate transition options accessors from class API
...
Now the style class transition options have its own getter/setter, which
persists for each style until a new style is set.
2016-09-13 12:38:59 +03:00
Konstantin Käfer
cb33c861b4
[core] parse more Style JSON properties
...
We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
2016-08-19 17:34:10 +02:00
Minh Nguyễn
e147887e35
[core, android, ios, macos] Replaced getPointAnnotationsInBounds() w/ queryPointAnnotations() ( #5165 )
...
queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view.
Fixes #5151 .
2016-08-12 15:45:18 -07:00
John Firebaugh
5254127e8c
[core] Runtime source API: Map methods
2016-06-16 13:27:15 -07:00
John Firebaugh
1529116ef6
[core] Introduce Map::getLayer
2016-06-13 17:22:05 -07:00
Bruno de Oliveira Abinader
9142c447e8
[tidy] Check llvm-namespace-comment
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html
2016-06-13 23:32:05 +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
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
Konstantin Käfer
e2bcea90fc
[core] use #pragma once instead of ifdef include guards
2016-05-25 21:35:37 +02:00
John Firebaugh
8ec0b70722
[core] Use mapbox::geometry::box in queryRenderedFeatures
2016-05-13 09:01:32 -07:00
John Firebaugh
0e7f3ada64
[core] Fix code style issues
2016-05-12 08:43:08 -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
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
John Firebaugh
ce4270b01c
[core] Convert MapContext to Map::Impl; eliminate indirection
2016-04-15 09:56:18 -07:00