Commit Graph

138 Commits

Author SHA1 Message Date
Anand Thakker
f648cfeef6 Implement Expressions (#9439)
Ports https://github.com/mapbox/mapbox-gl-js/pull/4777 (and its several follow-ups)
2017-11-08 12:34:02 -05:00
John Firebaugh
4b2e1cddb4 Replace compile-time polymorphism with runtime polymorphism in the conversion system 2017-10-23 09:56:43 -07:00
Bruno de Oliveira Abinader
8acb78ee79 [node] Reset HeadlessFrontend in NodeMap::release() 2017-10-20 01:27:26 +02:00
Lauren Budorick
e43e2aa3d7 [core, node] Support axonometric rendering 2017-10-14 03:15:34 +02:00
Bruno de Oliveira Abinader
447d24bb19 [node] Added 'removeSource' 2017-09-15 18:28:40 -03:00
Bruno de Oliveira Abinader
e9914bf034 [node] Implement GeoJSON converter 2017-09-13 23:35:27 +03:00
Bruno de Oliveira Abinader
6ee8d7bb60 [node] Set style default camera upon each test suite run 2017-08-31 10:17:21 +03:00
Bruno de Oliveira Abinader
d43757271e [node] Cleanup NodeMap::Render 2017-08-31 10:17:21 +03:00
John Firebaugh
32bd1d54fa [node, tests] Consolidate headless rendering logic in HeadlessFrontend 2017-07-26 09:50:38 -07:00
Ivo van Dongen
d2a437d048 [node] manage backendscope in renderer frontend 2017-07-25 17:44:28 +03:00
John Firebaugh
9d22ac8281 Partially revert "[node] Fix memory test hanging after GlyphAtlas refactoring (#8394)"
This reverts commit 5700c99e55.
2017-07-21 09:31:39 -07:00
Ivo van Dongen
a5a0558bde [test] allow only a single shared display to avoid egl errors 2017-07-18 10:45:12 +02:00
Ivo van Dongen
815ffb253b [android][glfw][ios][macos][node][qt] rename backend to renderer backend 2017-07-18 10:45:12 +02:00
Ivo van Dongen
b97cc980e0 [node] rendering interface changes 2017-07-18 10:45:12 +02:00
Ivo van Dongen
3832f8d0d8 [core] renderer interface 2017-07-18 10:45:12 +02:00
Ivo van Dongen
39a732d7ae [android][glfw][ios][macos][node][qt] split backend from mapobserver 2017-07-18 10:45:12 +02:00
John Firebaugh
40e4755621 [core] Move setStyleJSON/URL to Style; add Map::setStyle 2017-06-22 08:04:39 -07:00
John Firebaugh
1520a56813 [all] Promote Style to public API 2017-06-22 08:04:39 -07:00
Asheem Mamoowala
c0c1028dcf [core] Add toDouble Conversion method for correctly parsing Lat Lng coordinates 2017-06-01 15:38:01 -07:00
John Firebaugh
9e1cbbeacb [node] Pixel ratio may be floating point 2017-05-23 12:59:27 -07:00
John Firebaugh
cc1ea759a6 [core, node, darwin, android, qt] Make image ID part of Image
More like Source and Layer.
2017-05-16 12:26:35 -07:00
John Firebaugh
9eba2a66d1 [core, node, darwin, qt] Remove support for paint classes 2017-05-15 09:45:55 -07:00
Bruno de Oliveira Abinader
baeaad83a3 [tidy] modernize-use-emplace 2017-05-12 18:07:36 +03:00
John Firebaugh
baaae99a03 [core, android] Factor JSON string conversions
This adds a `convertJSON` template, to be used like:

   Error error
   optional<Foo> foo = convertJSON<Foo>(string, error);

Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.

While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
Asheem Mamoowala
5c52401d55 [core] Make Map.addImage tests pass (#8843)
Fix Node tests suite implementation to parse pixelRatio from style json
Premultiply images in the node binding before sending to mbgl core
2017-05-02 09:54:06 -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
Thiago Marcos P. Santos
51ebb96b1d [node] Add map.cancel()
Cancels an ongoing rendering.
2017-04-20 18:46:35 +03:00
Bobby Sudekum
0e72fc4ec3 [node] Calculate image buffer and length once (#8673) 2017-04-07 10:23:31 -07:00
Molly Lloyd
e9cc666390 [node] fix node bindings 🐛 2017-03-28 11:06:58 -07:00
John Firebaugh
306b895dad [node] Fix mistaken .cpp include 2017-03-28 13:53:19 +02:00
Konstantin Käfer
8e5214144e [core] Ensure that a BackendScope exists when doing GL calls 2017-03-23 14:50:11 -07:00
John Firebaugh
d7227e13a7 [all] Replace Result<T> with optional<T> plus out Error parameter 2017-03-23 13:31:13 -07:00
Bruno de Oliveira Abinader
5e3308c5c0 [node] Update changes in MapObserver::onDidFailLoadingMap 2017-03-17 11:25:48 +02:00
Bruno de Oliveira Abinader
d152efb8cb [node] Support mbgl::MapObserver 2017-03-15 14:53:32 +02:00
Thiago Marcos P. Santos
5700c99e55 [node] Fix memory test hanging after GlyphAtlas refactoring (#8394)
Replies are assumed to be asynchronous after e3500c1f79.
2017-03-14 13:19:58 -07:00
John Firebaugh
b05e19b389 [node, glfw] Remove libuv 0.10 support 2017-03-10 15:03:18 -08: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
Konstantin Käfer
9ca9adf69c [core] private OffscreenView implementation 2017-02-27 16:51:17 -08:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Bobby Sudekum
2988ca16c1 Add addImage, removeImage API (#7610) 2017-01-09 13:03:17 -08:00
John Firebaugh
1b7dfff5cf [node] Fix array/object distinction
Only affects tests.
2017-01-04 17:38:33 -08:00
John Firebaugh
e8a48a6d63 [node] Fix order of operations when setting zoom and center
Zoom must be set first, to avoid center potentially getting constrained.

Fixes #7351
2016-12-14 10:08:23 -08:00
Konstantin Käfer
e76de05402 [build] move logging to util 2016-11-22 20:58:51 +01:00
Konstantin Käfer
117863f111 [build] move headless rendering files to platform/default 2016-11-22 20:58:51 +01:00
John Firebaugh
251035cd75 [node] Add setZoom and setPitch support 2016-11-17 13:48:00 -08:00
John Firebaugh
f1e10e31a5 [node] Revert semantics of Map#render 2016-11-17 13:48:00 -08:00
John Firebaugh
a5e712d28b [node] Don't needlessly reset map state 2016-11-09 17:54:45 -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