Examples

David Levinsky edited this page Apr 27, 2018 · 30 revisions

VTS Browser API Examples

Basic example

Basic example which shows how to display the map in the webpage

Flights

Example showing how to fly between locations using browser's autopilot capabilities.

Switching bound layers

Layer switcher example, showing how to change bound layer on the surface.

Switching surfaces

This example demonstrates how to show or hide surfaces on the map.

Switching geodata

This example demonstrates how to show or hide geodata on the map.

Lines and images

Example showing how to add line and point features on the surface with map browser capabilities.

Hit surface

In this example, user can mark point on surface using mouse click.

Meshes

In this demo we demonstrate, how to place custom polygon meshes (with texture) on the terrain surface.

Meshes - Hit test

In this demo demonstrates, how to implement hit test for custom polygon meshes.

Meshes - Import OBJ

Example showing how to import OBJ files and display them in the map.

Geodata - Basic

This Example is showing how to create geodata with styled features.

Geodata - Import GeoJSON

This example demonstrates how to import GeoJSON data.

Geodata - Import GeoJSON from URL

This example demonstrates how to import GeoJSON data from the file.

Geodata with dynamic render

This example is showing how to combine geodata with dynamically rendered features.

Geodata - Hover events

Example showing how to work with hover events.

Geodata - Click events

Example showing how to work with click events.

Geodata - Click and hover events

Example showing how to combine click and hover events.

Geodata - Advanced hover events

Example showing how to work with advanced hover events.

GPX Viewer

Simple application for displaying GPX files.

You can’t perform that action at this time.
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.
Press h to open a hovercard with more details.