Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tomtom-international/web-sdk-plugin-minimap

Package Overview
Dependencies
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tomtom-international/web-sdk-plugin-minimap

Plugin that adds minimap to the parent map

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
7
Weekly downloads
 
Created
Source

Minmap Plugin

A plugin that provides a minimap functionality.

Instalation

Just do:

npm i @tomtom-international/web-sdk-plugin-minimap

You must also include the minimap stylesheet in your project. It's located here:

node_modules/@tomtom-international/web-sdk-plugin-minimap/dist/Minimap.css

Usage

In this example we assume that you already have the Tomtom Maps SDK for Web library included.


import Minimap from '@tomtom-international/web-sdk-plugin-minimap'

const ttMinimap = new Minimap({
    mapRef: tt.map,
    zoomOffset: 5,
    ignorePitchAndBearing: true,
    mapOptions: {
        key: '<your-tomtom-maps-sdk-key>',
        style: 'tomtom://vector/1/basic-main',
        dragRotate: false
    }
});

const map = tt.map({
    key: '<your-tomtom-maps-sdk-key>',
    container: 'map',
    style: 'tomtom://vector/1/basic-main'
}, {
    center: [19.45773, 51.76217],
    zoom: 12
});

map.addControl(ttMinimap, 'bottom-right');

FAQs

Package last updated on 12 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc