Giter Club home page Giter Club logo

tangram-docs's Introduction

Tangram Documentation

Tangram is a flexible browser-based mapping engine, designed for real-time rendering of 2D and 3D maps from geolocated vector data.

This repo stores the source files for our documentation site:

tangram-docs's People

Contributors

alex237 avatar bcamper avatar ceseale avatar dmvaldman avatar guyisra avatar jczaplew avatar karimnaaji avatar leftshift avatar louh avatar matteblair avatar meetar avatar migurski avatar nvkelso avatar patriciogonzalezvivo avatar paulmach avatar pnorman avatar rmglennon avatar skrat avatar tallytalwar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tangram-docs's Issues

Reference common text, font, fill, stroke in Readme

We top-level list common 3d things like camera and lights in the top-level doc README. We should also list (as a parenthetical or โ€“ after the topic headings) text, font, fill, and stroke since those are the most common styling directives.

whither `angle`?

Tangram JS supports an undocumented angle parameter when drawing point geometries, but ES currently doesn't โ€“ per tangrams/tangram-es#551, has the fate of this feature been decided, either de jure or de facto?

cc @blair1618

reserved keywords clarification

When describing restrictions on the custom names of objects, the "reserved keywords" are mentioned, in numerous places:

cameras.md#camera-names
lights.md#light-names
sources.md#source-names
styles.md#style-names
textures.md#texture-names
layers.md#layer-name
layers.md#sublayer-name
layers.md#properties

This was originally written with the understanding that there were globally-reserved keywords, and that none of them could be used as custom names in any of these circumstances. Is this true?

Or โ€“ is it that a custom name can be anything except one of the reserved keywords at that layer in the document โ€“ and if there aren't any at that layer, the name can be anything at all?

Eg a layer object can take data and filter parameters (in addition to any sublayers), so the sublayers can be named anything except "data" and "filter" โ€“ whereas the cameras object has only custom names as parameters, so those names can be anything?

cc @bcamper

Add Tangram Android SDK documentation

The tangram-es Android SDK will be launching publicly in the next few weeks. The public tangram documentation (https://mapzen.com/documentation/tangram/) should cover both the browser-based and Android-based Tangram SDKs. I can see several major steps to completing this:

  • Find and label parts of the docs specific to tangram-js (e.g. "Walkthrough" -> "JS Walkthrough")
  • Re-word the "Home" page to include both the web and mobile versions of tangram
  • Create a repository with a minimal tangram-es Android demo app
  • Add an "Android Walkthrough" page
  • Add Android API reference documentation (either javadoc or markdown generated from javadoc)

File structure for compatibility with mkdocs pipeline

Summary of conversation from today.

First, for reference:

And some additional background:
The contents of https://github.com/tangrams/tangram-docs is pulled in as a git submodule (for now, submodules are super janky) and MkDocs is told to read contents from the pages directory (as opposed to the root of the repository, most of which contains demo files, instead of documentation).

Some of the issues which have arisen:

  • MkDocs does not understand contents outside of the documentation directory you give it, so relative links that go up to the root and into another folder just result in broken links. This results in things like image files (which GitHub links to correctly) to break when rendered by MkDocs. A potential solution is to move image assets into the pages folder if it's not needed anywhere else, or we process documentation from the root directory of the repository instead.
  • Similarly, the front page of the documentation is processed by making a copy of README.md and placing it in the pages folder as index.md (with paths corrected). (I originally said it was based off of pages/Home.md but I think I was wrong about that.) For some reason we had some linking issues arising from case sensitive filenames but as I'm digging into the root cause, I think it might actually be a workflow problem on my end, so I will try to address it on my side and see if it's still a problem. On a similar vein, though, would it make sense to just have lower-case file names so that URLs are cleaner?
  • Organization of things into certain top level categories makes it easier to do things like concatenate smaller pieces of documentation into single pages (this makes sense in technical documentation, like API or language documentation, where developers are more likely to prefer to Ctrl-F to a term). (Examples: LESS, Leaflet) Some ways we discussed (each with their own tradeoffs):
    • Explicitly declare which file is categorized where in mkdocs configuration.
    • Sort files into subfolders that are intended to indicate how files are categorized.
    • Include a block of YAML metadata (like with Jekyll posts) that tell the pipeline what to do with it.

Is 'mapping' always required for textures?

The top of the textures page states that "A texture requires, at the minimum, a url path and a mapping mode":

https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/textures.md#textures

However the subsequent paragraph on the 'mapping' parameter calls it an "optional" string:

https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/textures.md#mapping

It's also a bit confusing that the syntax for textures differs slightly between the top-level textures element and "inline" in a material, but I believe that's an actual quirk of the library and not a documentation problem.

Size param for sprites

It seems like the size parameter isn't fully documented since it's possible to provide a [widhSize, heightSize] if the sprite isn't squared.

format function arguments

Re: e.g. setDataSource(_string_ name, _object_ config), from #77 (comment):

I think I actually took these data types out (string, etc.) awhile ago, because while they are useful to have somewhere, they were not being formatted correctly in the doc generation (where they show up in the left-hand nav), and are also not consistent throughout these pages. So we should find a standard that works.

Rework the tangram docs headings and topic structures

Currently, the Tangram help at https://mapzen.com/documentation/tangram/ has only two top-level entries in the TOC because everything is nested under "concept overviews" and "technical reference". Most of the titles are repeated between these headings (Filters in the overview, and filters in the API section), so it's not as easy as removing the top-level nodes. It would also get really redundant to put a word like "overview" in the first batch of headings or "API/parameter" in the second batch to distinguish them.

We also need to do need to do some work with the H2s and H3s in these topics to reduce the TOC subentries.

Original issue: mapzen/documentation#50

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.