
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@tomtom-international/web-sdk-plugin-pancontrols
Advanced tools
Plugin that provides ability to pan map using ui controls
A plugin that provides the ability to pan map using ui controls, for @tomtom-international/web-sdk-maps.
Please note that from version 2.0.0 this plugin only works with @tomtom-international/web-sdk-maps@6.*.*, if you are using @tomtom-international/web-sdk-maps@5.*.* please use version 1.*.*
Just do:
npm i @tomtom-international/web-sdk-plugin-pancontrols
You must also include the pan control stylesheet in your project. It's located here:
node_modules/@tomtom-international/web-sdk-plugin-pancontrols/dist/PanControls.css
In this example we assume that you already have the Tomtom Maps SDK for Web library included.
import tt from '@tomtom-international/web-sdk-maps';
import PanControls from '@tomtom-international/web-sdk-plugin-pancontrols';
const ttPanControls = new PanControls({
className: 'my-class-name', // default = ''
panOffset: 150 // default = 100
});
const ttMap = tt.map({
key: '<your-tomtom-maps-sdk-key>',
container: 'map',
center: [19.45773, 51.76217],
zoom: 12
});
ttMap.addControl(ttPanControls, 'top-left');
FAQs
Plugin that provides ability to pan map using ui controls
We found that @tomtom-international/web-sdk-plugin-pancontrols demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.