Mapzen’s vector tile service delivers worldwide coverage of OpenStreetMap base layer data with up-to-the-minute updates, and is available in GeoJSON, TopoJSON, and binary formats (Mapbox and OpenScienceMap). Our vector tiles can be displayed via a number of open technologies, including SVG/d3, Canvas and WebGL. Simply put, vector tiles are squares of math. Instead of a web server sending you a pre-drawn image tile, a vector tile contains the OSM geometry for a particular part of the earth, delivered on demand. It contains instructions on what can be drawn, rather than something already drawn and styled. Below is a snippet of a vector tile in GeoJSON, as you can see it contains mathematical descriptions and metadata of buildings, roads and other features in the OSM base layer. (Mapzen vector tiles can also be exported as TopoJSON, which when compressed is usually smaller than corresponding image files or binary formats. More details on formats are included in the documentation.) How to draw the tile is up to the vector-friendly visualization tool (usually SVG, Canvas, or WebGL) in the web browser. Buildings and roads can be rendered in different ways (or not at all) once the vector tile is downloaded — no need to head back to the server and fetch a different set of tiles if you want to filter the output. There’s no need to re-render millions of tiles if you change your mind about the style of a road or the color of a building. Vector tiles allows for more efficient downloads and more rapid map updates than pre-rendered raster tiles that you might be used to. When changes are made to the OSM base layer, rather than waiting for an image tile to be redrawn, only the coordinates and drawing instructions for that particular building or road need to be updated. Depending on the URL syntax, vector tiles can return all of the OSM data, or just individual layers, or combinations of layers, including water, earth, landuse, roads, buildings and points of interest. While it requires an API key, our vector tile service is not rate limited and has a generous license. Our goal is to keep this free for small to mid-sized developers and businesses to make (and sell!) cool and interesting products and apps using our tiles. If you ever use so many tiles that you start to impact the overall service, we will get in touch with you and figure out a solution. We only ask that you not resell our raw vector tiles as your own. If you have any questions, please contact us. And you should contact us anyway, because we want to hear what people are trying to do. One or more layers can be specified in the URL – all returns everything, while other layer names filter the geometry that is delivered: buildings and roads and water are but a few examples. Multiple layer names can be combined in the URL, such as roads,water. See the technical documentation for a list of available layers. Mapzen Vector Tiles can be displayed in a number of visualization technologies in addition to our Tangram WebGL renderer. We have created public examples of how to them in four browser technologies: Mapzen’s Tangram, D3, HTML Canvas, and MapboxGL. Tangram is Mapzen’s WebGL mapping engine designed for real-time rendering of 2D and 3D maps from vector tiles. More details are available on the Tangram home page as well in the Tangram documentation. D3 is a JavaScript visualization library that you can use to render to SVG in your browser. Mike Bostock adapted d3.geo.til to show OpenStreetMap vector tiles. D3 can use either GeoJSON, TopoJSON or mvt/pbf (Mapbox’s Protocol Buffer format). The layer styling can be inline or referenced from a CSS file. MapboxGL is a JavaScript library used to render the Mapbox Vector Tiles protocol buffer format through OpenGL on both web and native platforms. Hoverboard is a JavaScript library created by Tristan Davies to draw vector tiles as a Leaflet tile layer on the HTML Canvas element of a webpage. Hoverboard supports the Mapzen vector tiles in GeoJSON, TopoJSON, or mvt/pbf format. Have you spotted Mapzen vector tiles out in the wild? (Or used them for a project of your own?) We love to hear how people use our tools, so say hi or drop us a line! <,3 Got an interesting problem? Want to know more about things we’re doing? Just want to say hi? Send us <,3 Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 18, 2016 @ 4:07 am