You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
We only want to support setting a style via the URL (and asset://) mechanism provided by get/setStyleURL
Helps avoid issues with a style URL loading after the JSON is set directly.
Currently get/setStyleJSON is only needed in the tests to rewrite port numbers. We should find a way to expose this to the tests but not make it a public API.
What I was asking was if it supports the refactored FileSource interface @incanus, such that when used with Node.js bindings I can plug in a custom FileSource object rather than having something like curl baked in.
Activity
mikemorris commentedon Feb 18, 2015
How are you defining public API @ljbade? I'm currently using
setStyleJSONat https://github.com/mapbox/node-mapbox-gl-native/blob/master/src/node_map.cpp#L132 to set data loaded directly from a customFileSourceimplementation. DoessetStyleURLcorrectly use the map'sFileSourceto load data?incanus commentedon Mar 31, 2015
Yes, this API now supports both regular HTTP URLs as well as
mapbox://user.stylemap IDs.mikemorris commentedon Mar 31, 2015
What I was asking was if it supports the refactored
FileSourceinterface @incanus, such that when used with Node.js bindings I can plug in a customFileSourceobject rather than having something likecurlbaked in.friedbunny commentedon Jun 8, 2015
We did this.