Comments (9)
Whats currently there in the docs will actually not compile for tangram-es!
from cartography-docs.
This newer syntax has been around since Tangram ES 0.4.9-android so don't think we need to clarify versions in the docs.
Should split the example code into just the API key, and then showing how to chain multiple globals together in the lower sections.
from cartography-docs.
Fixed in #40.
from cartography-docs.
Fix is live, closing.
(Screenshot below)
from cartography-docs.
The specific syntax for this is going to vary depending on the platform where you're using Tangram ES. The syntax in that last screenshot is what you would if you were using the C++ interface directly, not what you would use for Android or iOS (which is probably most users). It may be easier and more useful to just link to the relevant documentation for the Tangram ES mobile platforms.
from cartography-docs.
from cartography-docs.
Or maybe we can show the Tangram ES code for both iOS and Android, since this section has several examples already.
from cartography-docs.
@matteblair Both work for me, if you provide the snippets and links :)
from cartography-docs.
This would look like..
On Android, with a MapController
object named mapController
:
mapController.loadSceneFileAsync(
"https://mapzen.com/carto/refill-style/6/refill-style.yaml",
Arrays.asList(new SceneUpdate("global.sdk_mapzen_api_key", "mapzen-xxxxxx")
);
On iOS, from your MapViewControllerDelegate
:
[super loadSceneAsyncFromURL:[NSURL URLWithString:@"https://mapzen.com/carto/refill-style/6/refill-style.yaml"]
withUpdates:@[[[TGSceneUpdate alloc]initWithPath:@"global.sdk_mapzen_api_key" value:@"mapzen-xxxxxx"]]];
from cartography-docs.
Related Issues (12)
- add images for each basemap style
- Update which house styles support transit overlay HOT 1
- Update which house styles support localized names HOT 1
- Add details about sdk_road_shields and building extrusion
- Add description on how to set API key per style HOT 11
- Walkabout now supports basic SDK/UI styles
- Update docs for Zinc theme in Cinnabar style HOT 2
- Update docs for icon library examples HOT 3
- [docs] Better explain the 3 theme axis
- New style.md preview images are HUGE
- Required Tangram version bumps in SemVer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cartography-docs.