npm install mapbox-gl-controls Include styles from package:mapbox-gl-controls/lib/controls.css Ruler Control [options] import{RulerControl}from'mapbox-gl-controls';map.addControl(newRulerControl(),'top-right');map.on('ruler.on',()=>console.log('ruler: on'));map.on('ruler.off',()=>...
{ RulerControl, StylesControl, CompassControl, ZoomControl, InspectControl, TooltipControl, LanguageControl, ImageControl } from 'mapbox-gl-controls' // 地理编码控件 import MapboxGeocoder from '@mapbox/mapbox-gl-geocoder'; import '@mapbox/mapbox-gl-geocoder/dist/mapbox-gl-geocoder.css'; ...
controls/image': specifier: workspace:* version: link:../packages/image '@mapbox-controls/inspect': specifier: workspace:* version: link:../packages/inspect '@mapbox-controls/language': specifier: workspace:* version: link:../packages/language '@mapbox-controls/ruler': specifier: workspace:*...
Add a map to your UI; Add Controls (Zoom in/out, Different Map Styles, Ruler...); Add a data source and display geographic points on the map using geoJSOn; Have a list which will update itself based on the current data points that you can see on the map (if you are viewing the...
Breadcrumbs mapbox-base / LICENSE.thirdpartyTop File metadata and controls Code Blame 386 lines (277 loc) · 21 KB Raw Mapbox Base uses portions of googletest Copyright 2008, Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, ar...
📖 @mapbox-controls/language - Change map language 📏 @mapbox-controls/ruler - Measure distance between points on a map 💅 @mapbox-controls/styles - Change map style 🏷️ @mapbox-controls/tooltip - Display tooltip on hover 🔍 @mapbox-controls/zoom - Zoom in and zoom out mapma...