mapboxgl-tools 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/README.md +33 -0
- package/dist/ui.es.js +17 -7
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"G:\\fengtu\\admin-ui\\src\\main.js":"1","G:\\fengtu\\admin-ui\\src\\App.vue":"2","G:\\fengtu\\admin-ui\\src\\Helloworld.vue":"3","G:\\fengtu\\mapboxgl-ui\\src\\main.js":"4","G:\\fengtu\\mapboxgl-ui\\src\\App.vue":"5","G:\\fengtu\\mapboxgl-ui\\src\\Helloworld.vue":"6"},{"size":207,"mtime":1705629488877,"results":"7","hashOfConfig":"8"},{"size":418,"mtime":1705629382904,"results":"9","hashOfConfig":"8"},{"size":510,"mtime":1705915018041,"results":"10","hashOfConfig":"8"},{"size":207,"mtime":1705629488877,"results":"11","hashOfConfig":"12"},{"size":418,"mtime":1705629382904,"results":"13","hashOfConfig":"12"},{"size":
|
|
1
|
+
[{"G:\\fengtu\\admin-ui\\src\\main.js":"1","G:\\fengtu\\admin-ui\\src\\App.vue":"2","G:\\fengtu\\admin-ui\\src\\Helloworld.vue":"3","G:\\fengtu\\mapboxgl-ui\\src\\main.js":"4","G:\\fengtu\\mapboxgl-ui\\src\\App.vue":"5","G:\\fengtu\\mapboxgl-ui\\src\\Helloworld.vue":"6"},{"size":207,"mtime":1705629488877,"results":"7","hashOfConfig":"8"},{"size":418,"mtime":1705629382904,"results":"9","hashOfConfig":"8"},{"size":510,"mtime":1705915018041,"results":"10","hashOfConfig":"8"},{"size":207,"mtime":1705629488877,"results":"11","hashOfConfig":"12"},{"size":418,"mtime":1705629382904,"results":"13","hashOfConfig":"12"},{"size":6471,"mtime":1709259302150,"results":"14","hashOfConfig":"12"},{"filePath":"15","messages":"16","suppressedMessages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"15ou60z",{"filePath":"18","messages":"19","suppressedMessages":"20","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"21","messages":"22","suppressedMessages":"23","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","suppressedMessages":"26","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1uibmbb",{"filePath":"27","messages":"28","suppressedMessages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"30","messages":"31","suppressedMessages":"32","errorCount":1,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":1,"fixableWarningCount":0,"source":null},"G:\\fengtu\\admin-ui\\src\\main.js",[],[],"G:\\fengtu\\admin-ui\\src\\App.vue",[],[],"G:\\fengtu\\admin-ui\\src\\Helloworld.vue",[],[],"G:\\fengtu\\mapboxgl-ui\\src\\main.js",[],[],"G:\\fengtu\\mapboxgl-ui\\src\\App.vue",[],[],"G:\\fengtu\\mapboxgl-ui\\src\\Helloworld.vue",["33"],[],{"ruleId":"34","severity":2,"message":"35","line":102,"column":21,"nodeType":null,"messageId":"36","endLine":104,"endColumn":13,"fix":"37"},"prettier/prettier","Replace `␍⏎················'http://wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}<ype=7',␍⏎············` with `'http://wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}<ype=7'`","replace",{"range":"38","text":"39"},[5590,5717],"'http://wprd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}<ype=7'"]
|
package/README.md
CHANGED
|
@@ -292,5 +292,38 @@ export default {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
</script>
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### 8.PositionControl
|
|
299
|
+
> 测量面积mapboxgl控制器
|
|
300
|
+
|
|
301
|
+
| Property | Type | 默认值 | Description |
|
|
302
|
+
| ----- | ------------- | ------------- | ------------------------ |
|
|
303
|
+
| title | String | 测量面积 | 入口按钮title |
|
|
304
|
+
| layout | String | { icon-size: 0.2, icon-anchor: 'bottom', icon-image: ['case', ['get', 'current'], IMAGE_POSCONTROL_ACT, IMAGE_POSCONTROL_NOR ] } | mapboxgl-layout, 当前的定位点current属性为true |
|
|
305
|
+
| paint | String | {} | mapboxgl-paint |
|
|
306
|
+
|
|
307
|
+
```js
|
|
308
|
+
<template>
|
|
309
|
+
<section id="map" style="width: 90%; height: 700px"></section>
|
|
310
|
+
</template>
|
|
311
|
+
|
|
312
|
+
<script>
|
|
313
|
+
import { PositionControl, transformRequest4326 } from 'mapboxgl-tools'
|
|
314
|
+
|
|
315
|
+
export default {
|
|
316
|
+
mounted() {
|
|
317
|
+
const map = new mapboxgl.Map({
|
|
318
|
+
container: 'map',
|
|
319
|
+
style: 'mapbox://styles/mapbox/light-v11',
|
|
320
|
+
zoom: 18,
|
|
321
|
+
center: [114.26697720786854,30.63091896813168],
|
|
322
|
+
transformRequest: transformRequest4326,
|
|
323
|
+
})
|
|
324
|
+
map.addControl(new PositionControl(), 'top-right')
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
295
328
|
</script>
|
|
296
329
|
```
|