@vtx/ol-map-mobile
Advanced tools
@@ -11,3 +11,3 @@ <template></template> | ||
| inject: ['getFeatureLayer', 'getMap'], | ||
| props: ['data', 'property', 'styles'], | ||
| props: ['data', 'property', 'styles', 'onClick', 'onDoubleClick'], | ||
| data() { | ||
@@ -14,0 +14,0 @@ return { |
@@ -14,3 +14,3 @@ <template> | ||
| name: 'ol-dom', | ||
| props: ['data', 'show', 'otherProps'], | ||
| props: ['data', 'show', 'otherProps', 'onClick', 'onDoubleClick'], | ||
| inject: ['getMap'], | ||
@@ -17,0 +17,0 @@ data() { |
@@ -24,2 +24,8 @@ <template></template> | ||
| }, | ||
| onClick: { | ||
| type: Function, | ||
| }, | ||
| onDoubleClick: { | ||
| type: Function, | ||
| }, | ||
| lineStyle: Object, | ||
@@ -26,0 +32,0 @@ dotStyle: Object, |
@@ -28,2 +28,8 @@ <template></template> | ||
| }, | ||
| onClick: { | ||
| type: Function, | ||
| }, | ||
| onDoubleClick: { | ||
| type: Function, | ||
| }, | ||
| afterGetData: Function, | ||
@@ -30,0 +36,0 @@ show: { |
@@ -15,2 +15,8 @@ <template></template> | ||
| }, | ||
| onClick: { | ||
| type: Function, | ||
| }, | ||
| onDoubleClick: { | ||
| type: Function, | ||
| }, | ||
| }, | ||
@@ -17,0 +23,0 @@ data() { |
@@ -30,2 +30,8 @@ <template></template> | ||
| }, | ||
| onClick: { | ||
| type: Function, | ||
| }, | ||
| onDoubleClick: { | ||
| type: Function, | ||
| }, | ||
| group: Array, | ||
@@ -32,0 +38,0 @@ legend: [Object, String, Function], |
@@ -338,2 +338,3 @@ <template> | ||
| openTemplate(feature) { | ||
| let layer = this.mapRef.getLayerByFeature(feature); | ||
| if (!layer?.template) { | ||
@@ -343,3 +344,2 @@ return; | ||
| this.clickFeature = feature; | ||
| let layer = this.mapRef.getLayerByFeature(feature); | ||
| const features = feature.get('features'); | ||
@@ -553,2 +553,5 @@ if (features && features.length >= 2) { | ||
| getLayerByFeature(feature) { | ||
| if (!feature) { | ||
| return {}; | ||
| } | ||
| return this.mapRef.getAllLayers().find((layer) => { | ||
@@ -555,0 +558,0 @@ let has = false; |
@@ -12,3 +12,3 @@ <template></template> | ||
| inject: ['getFeatureLayer'], | ||
| props: ['data', 'property', 'styles'], | ||
| props: ['data', 'property', 'styles', 'onClick', 'onDoubleClick'], | ||
| data() { | ||
@@ -15,0 +15,0 @@ return { |
@@ -11,3 +11,3 @@ <template></template> | ||
| inject: ['getFeatureLayer'], | ||
| props: ['data', 'property', 'styles'], | ||
| props: ['data', 'property', 'styles', 'onClick', 'onDoubleClick'], | ||
| data() { | ||
@@ -14,0 +14,0 @@ return { |
@@ -11,3 +11,3 @@ <template></template> | ||
| inject: ['getFeatureLayer'], | ||
| props: ['data', 'property', 'styles'], | ||
| props: ['data', 'property', 'styles', 'onClick', 'onDoubleClick'], | ||
| data() { | ||
@@ -14,0 +14,0 @@ return { |
@@ -14,2 +14,8 @@ <template></template> | ||
| source: Object, | ||
| onClick: { | ||
| type: Function, | ||
| }, | ||
| onDoubleClick: { | ||
| type: Function, | ||
| }, | ||
| }, | ||
@@ -16,0 +22,0 @@ data() { |
+1
-1
| { | ||
| "name": "@vtx/ol-map-mobile", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "uni-app组件库", | ||
@@ -5,0 +5,0 @@ "scripts": { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
792539
0.1%