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
Konstantin Käfer
5cc390d694
[core] separate Backend from View for headless rendering
2016-10-25 13:52:36 -07:00
Mike Morris
7bbd49c72c
[core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive
2016-10-20 14:39:11 -04:00
Mike Morris
a894870fb8
[node] remove internal NodeRequest class from public API
2016-10-20 14:38:36 -04: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
Bruno de Oliveira Abinader
89f3270f72
[node] Added set{Bearing,Center} + updated -test-suite
...
This gives the ability to pan and/or rotate the map in a posterior step
after initial render for testing purposes.
2016-10-11 12:10:32 +03:00
Thiago Marcos P. Santos
edec56e6c5
[node] switch to NodeRequest member fn callback
...
For (hopefully) better performance than creating a new v8::Context to
wrap each callback while still avoiding leaking memory with v8::FunctionTemplate.
Adds a JavaScript shim in front of module.exports.Map to wrap the
req.respond API internally and preserve the public callback-passing
API, while still exporting the correct prototype.
2016-09-06 18:14:22 -04:00
John Firebaugh
b4864ca9d5
[core] Trigger Source::Impl::reload when a filter or layout property is modified
2016-09-06 14:29:22 -07:00
John Firebaugh
fe2a26225f
[core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update
...
This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
2016-09-06 14:29:22 -07:00
Thiago Marcos P. Santos
a12fa9333b
[node] Throw on invalid style JSON
...
Fixes #6143
2016-08-25 22:05:00 +03:00
Bruno de Oliveira Abinader
e1f11eed35
[core] Updated clang-tidy fixes
2016-08-05 11:42:22 +02:00
Carol Hansen
4b1eeada9e
[node] Fix integer conversion of filter values
2016-07-22 13:05:16 -07:00
Mike Morris
7df0e459b6
[node] NodeRequest inherits from Nan::AsyncWorker
...
drop NodeRequest::Create, move MakeCallback to NodeRequest::Execute
rework Respond -> HandleCallback
modern NAN style updates
2016-07-14 13:47:02 -04:00
Mike Morris
ce8f053adb
[node] enter new v8::Context to avoid leaking v8::FunctionTemplate in NodeMap::request
2016-07-14 13:47:02 -04:00
Bruno de Oliveira Abinader
1cb59e20c4
[node] Added 'removeLayer' binding
2016-07-13 16:19:28 +03:00
Thiago Marcos P. Santos
86cebd4cca
[core] Report conversion errors using std::string
...
char* increases the risk of pointing to a invalid reference. Qt had
to use a static variable as retainer to workaround.
2016-07-12 16:04:20 +03:00
Thiago Marcos P. Santos
01f5b6e58d
[node] Also Update::Classes when setting a paint property
...
Otherwise it has no effect. Tests might be working because a
Update::Classes is also scheduled when adding a new layer.
2016-07-08 16:27:16 +03:00
Young Hahn
71a3b1d0db
[core] geometry@0.8.0 / geojsonvt@6.0.0 ( #5514 )
...
* [core] geometry.hpp 0.8.0
* geojsonvt @ 6.0.0
* Update platform deps, build scripts
* Perf optimizations/cleanup
* Rebase in geometry@080
* D.R.Y. etc
* Ensure fill annotation geometries have closed rings.
* Optimizations
* Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt
* Apply close multi/poly geoms for line annotations as well
2016-07-06 17:29:34 -04:00
Minh Nguyễn
8947b0af27
[ios, macos, node] “Mapbox GL Style Specification” → “Mapbox Style Specification” ( #5553 )
2016-07-04 17:37:11 -07:00
John Firebaugh
021d4199cb
[core, node] Implement bindings for addSource
2016-06-24 09:39:51 -07:00
John Firebaugh
16c435b151
[core, node] Implement bindings for addLayer
2016-06-24 09:39:51 -07:00
John Firebaugh
3459b83736
[core, node] Node bindings for setFilter
2016-06-21 18:24:49 -07:00
John Firebaugh
220fc7adc9
[node] Support setLayoutProperty(..., "visibility", ...)
2016-06-21 16:30:35 -07:00
John Firebaugh
8a9ee26b0e
[core] Use mbgl::style::conversion in node bindings
2016-06-21 16:04:22 -07:00
Bruno de Oliveira Abinader
6c9e00be3a
[node] Read 'options.showOverdrawInspector'
2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
c20c1d6a6b
[core] Avoid redundant 'inline' usage
2016-06-18 23:46:50 +03:00
John Firebaugh
19158d9f01
[core, node] Implement setPaintProperty for color properties ( #5380 )
2016-06-16 13:25:06 -07:00
Young Hahn
199ea2a82a
Support for icon-text-fit, icon-text-fit-padding ( #5334 )
...
* Add support for icon-text-fit
* Port unit tests for getIconQuads() from js => cpp
* Add support for padding in all 4 directions.
* Update all hashes post-merge
2016-06-15 17:13:31 -04:00
Bruno de Oliveira Abinader
e83b12c387
[node] Narrow conversion (double → float) caught by GCC
2016-06-15 18:41:56 +03:00