Adapting the earlier OSM vector tiles example to show how to render multiple layers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 |
This example demonstrates how to create a custom Cartesian projection by implementing a geometry stream on top of two linear scales; the geometry stream is then used instead of a geographic projection, which are intended for spherical coordinates.