1.0.1 • Published 4 years ago

tm-streetside-viewer v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

The StreetSide Viewer

This package contains a cube viewer for the Bing Maps StreetSide Service.

Example Usage:

    import * as StreetSide from '@polarphd/streetside-viewer";
    
    let lon = -76.0;
    let lat = 43.0;
    let key = "***Your BingMap API Key HERE ****";
    StreetSide.StreetSideService.findFromLonLat(lon, lat, key,
        (metaData: StreetSide.StreetSideMetaData) => {
            let width = 512;
            let height = 512;
            let viewer = new StreetSide.StreetSideViewer(width, height, metaData);
            let node = viewer.getDomElement();
            document.body.appendChild(node);
        },
        (error: string) => {
            console.log("Cannot find streetside coverage near " + lon + ", " + lat);
        });
1.0.1

4 years ago