Gathering detailed insights and metrics for @mint-ui/map
Gathering detailed insights and metrics for @mint-ui/map
Gathering detailed insights and metrics for @mint-ui/map
Gathering detailed insights and metrics for @mint-ui/map
npm install @mint-ui/map
Typescript
Module System
Node Version
NPM Version
75.4
Supply Chain
92.8
Quality
90.3
Maintenance
100
Vulnerability
99.6
License
Total Downloads
17,296
Last Day
2
Last Week
133
Last Month
346
Last Year
5,214
Minified
Minified + Gzipped
Latest Version
1.1.2
Package Id
@mint-ui/map@1.1.2
Unpacked Size
642.04 kB
Size
130.11 kB
File Count
95
NPM Version
10.5.2
Node Version
20.13.1
Published on
Jun 12, 2025
Cumulative downloads
Total Downloads
Last Day
-92%
2
Compared to previous day
Last Week
0%
133
Compared to previous week
Last Month
-58.1%
346
Compared to previous month
Last Year
-30.4%
5,214
Compared to previous year
9
44
1yarn add @mint-ui/map 2 3npm install @mint-ui/map
1... 2... 3 4import { MapMarkerWrapper, MintMap, Position } from '@mint-ui/map' 5 6const root = ReactDOM.createRoot( 7 document.getElementById('root') 8) 9 10function MyMapComponent(){ 11 12 return <MintMap 13 mapType={'google'} 14 mapKey={'YOUR_GOOGLE_MAP_KEY'} 15 mapId='YOUR_GOOGLE_MAP_ID' //Use advanced markers in Google maps 16 base={{center:new Position(-25.344, 131.031), zoomLevel:12}} 17 > 18 {/* Your marker */} 19 <MapMarkerWrapper position={new Position(-25.344, 131.031)}> 20 21 {/* Your marker elements */} 22 <div style={{width:'10px', height:'10px', background:'red', borderRadius:'10px'}}></div> 23 24 </MapMarkerWrapper> 25 26 {/* Canvas marker */} 27 <CanvasMarker 28 29 /* Canvas renderer */ 30 renderer={({ context, offset, payload }) => { 31 context.beginPath(); 32 33 // rect 34 context.rect(offset[0].x, offset[0].y, 20, 20); 35 context.fillStyle = 'orange'; 36 context.fill(); 37 38 // rect outline 39 context.strokeStyle = 'red'; 40 context.strokeRect(offset[0].x, offset[0].y, 20, 20); 41 42 // font 43 context.fillStyle = 'white'; 44 context.font = '10px caption'; 45 context.fillText(String(payload?.no), offset[0].x + 2, offset[0].y + 14); 46 context.closePath(); 47 }} 48 zIndex={2} 49 data={markers} 50 /> 51 52 </MintMap> 53 54} 55 56root.render((<MyMapComponent/>)) 57
No vulnerabilities found.
No security vulnerabilities found.