Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 103 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ Vue({
* [`removeCircles(...)`](#removecircles)
* [`addPolylines(...)`](#addpolylines)
* [`removePolylines(...)`](#removepolylines)
* [`addFeatures(...)`](#addfeatures)
* [`getFeatureBounds(...)`](#getfeaturebounds)
* [`removeFeature(...)`](#removefeature)
* [`removeFeatures(...)`](#removefeatures)
* [`destroy()`](#destroy)
* [`setCamera(...)`](#setcamera)
* [`getMapType()`](#getmaptype)
Expand All @@ -391,6 +395,7 @@ Vue({
* [`setOnClusterInfoWindowClickListener(...)`](#setonclusterinfowindowclicklistener)
* [`setOnInfoWindowClickListener(...)`](#setoninfowindowclicklistener)
* [`setOnMapClickListener(...)`](#setonmapclicklistener)
* [`setOnFeatureClickListener(...)`](#setonfeatureclicklistener)
* [`setOnMarkerClickListener(...)`](#setonmarkerclicklistener)
* [`setOnPolygonClickListener(...)`](#setonpolygonclicklistener)
* [`setOnCircleClickListener(...)`](#setoncircleclicklistener)
Expand Down Expand Up @@ -633,6 +638,67 @@ removePolylines(ids: string[]) => Promise<void>
--------------------


### addFeatures(...)

```typescript
addFeatures(type: FeatureType, data: any, idPropertyName?: string | undefined, styles?: FeatureStyles | undefined) => Promise<string[]>
```

| Param | Type |
| -------------------- | ------------------------------------------------------- |
| **`type`** | <code><a href="#featuretype">FeatureType</a></code> |
| **`data`** | <code>any</code> |
| **`idPropertyName`** | <code>string</code> |
| **`styles`** | <code><a href="#featurestyles">FeatureStyles</a></code> |

**Returns:** <code>Promise&lt;string[]&gt;</code>

--------------------


### getFeatureBounds(...)

```typescript
getFeatureBounds(featureId: string) => Promise<LatLngBounds>
```

| Param | Type |
| --------------- | ------------------- |
| **`featureId`** | <code>string</code> |

**Returns:** <code>Promise&lt;LatLngBounds&gt;</code>

--------------------


### removeFeature(...)

```typescript
removeFeature(featureId: string) => Promise<void>
```

| Param | Type |
| --------------- | ------------------- |
| **`featureId`** | <code>string</code> |

--------------------


### removeFeatures(...)

```typescript
removeFeatures(featureIds: string[]) => Promise<void>
```

Remove multiple GeoJSON features in a single plugin call. Feature IDs that are not found are ignored.

| Param | Type |
| ---------------- | --------------------- |
| **`featureIds`** | <code>string[]</code> |

--------------------


### destroy()

```typescript
Expand Down Expand Up @@ -866,6 +932,19 @@ setOnMapClickListener(callback?: MapListenerCallback<MapClickCallbackData> | und
--------------------


### setOnFeatureClickListener(...)

```typescript
setOnFeatureClickListener(callback?: MapListenerCallback<FeatureClickCallbackData> | undefined) => Promise<void>
```

| Param | Type |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **`callback`** | <code><a href="#maplistenercallback">MapListenerCallback</a>&lt;<a href="#featureclickcallbackdata">FeatureClickCallbackData</a>&gt;</code> |

--------------------


### setOnMarkerClickListener(...)

```typescript
Expand Down Expand Up @@ -1158,6 +1237,11 @@ Describes the style for some region of a polyline.
| **`segments`** | <code>number</code> | The length of this span in number of segments. |


#### FeatureStyles

Feature styles, identified by the feature id


#### CameraConfig

Configuration properties for a Google Map Camera
Expand Down Expand Up @@ -1243,6 +1327,17 @@ Controls for setting padding on the 'visible' region of the view.
| **`longitude`** | <code>number</code> |


#### FeatureClickCallbackData

| Prop | Type |
| ---------------- | ------------------------------------------------------------ |
| **`mapId`** | <code>string</code> |
| **`featureId`** | <code>string</code> |
| **`latitude`** | <code>number</code> |
| **`longitude`** | <code>number</code> |
| **`properties`** | <code>Record<string, any></code> |


#### PolygonClickCallbackData

| Prop | Type |
Expand Down Expand Up @@ -1296,6 +1391,14 @@ Supports markers of either "legacy" or "advanced" types.
### Enums


#### FeatureType

| Members | Value | Description |
| ------------- | ---------------------- | ----------- |
| **`Default`** | <code>'Default'</code> | Default |
| **`GeoJSON`** | <code>'GeoJSON'</code> | GeoJSON |


#### MapType

| Members | Value | Description |
Expand Down
103 changes: 103 additions & 0 deletions plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ Vue({
* [`removeCircles(...)`](#removecircles)
* [`addPolylines(...)`](#addpolylines)
* [`removePolylines(...)`](#removepolylines)
* [`addFeatures(...)`](#addfeatures)
* [`getFeatureBounds(...)`](#getfeaturebounds)
* [`removeFeature(...)`](#removefeature)
* [`removeFeatures(...)`](#removefeatures)
* [`destroy()`](#destroy)
* [`setCamera(...)`](#setcamera)
* [`getMapType()`](#getmaptype)
Expand All @@ -391,6 +395,7 @@ Vue({
* [`setOnClusterInfoWindowClickListener(...)`](#setonclusterinfowindowclicklistener)
* [`setOnInfoWindowClickListener(...)`](#setoninfowindowclicklistener)
* [`setOnMapClickListener(...)`](#setonmapclicklistener)
* [`setOnFeatureClickListener(...)`](#setonfeatureclicklistener)
* [`setOnMarkerClickListener(...)`](#setonmarkerclicklistener)
* [`setOnPolygonClickListener(...)`](#setonpolygonclicklistener)
* [`setOnCircleClickListener(...)`](#setoncircleclicklistener)
Expand Down Expand Up @@ -633,6 +638,67 @@ removePolylines(ids: string[]) => Promise<void>
--------------------


### addFeatures(...)

```typescript
addFeatures(type: FeatureType, data: any, idPropertyName?: string | undefined, styles?: FeatureStyles | undefined) => Promise<string[]>
```

| Param | Type |
| -------------------- | ------------------------------------------------------- |
| **`type`** | <code><a href="#featuretype">FeatureType</a></code> |
| **`data`** | <code>any</code> |
| **`idPropertyName`** | <code>string</code> |
| **`styles`** | <code><a href="#featurestyles">FeatureStyles</a></code> |

**Returns:** <code>Promise&lt;string[]&gt;</code>

--------------------


### getFeatureBounds(...)

```typescript
getFeatureBounds(featureId: string) => Promise<LatLngBounds>
```

| Param | Type |
| --------------- | ------------------- |
| **`featureId`** | <code>string</code> |

**Returns:** <code>Promise&lt;LatLngBounds&gt;</code>

--------------------


### removeFeature(...)

```typescript
removeFeature(featureId: string) => Promise<void>
```

| Param | Type |
| --------------- | ------------------- |
| **`featureId`** | <code>string</code> |

--------------------


### removeFeatures(...)

```typescript
removeFeatures(featureIds: string[]) => Promise<void>
```

Remove multiple GeoJSON features in a single plugin call. Feature IDs that are not found are ignored.

| Param | Type |
| ---------------- | --------------------- |
| **`featureIds`** | <code>string[]</code> |

--------------------


### destroy()

```typescript
Expand Down Expand Up @@ -866,6 +932,19 @@ setOnMapClickListener(callback?: MapListenerCallback<MapClickCallbackData> | und
--------------------


### setOnFeatureClickListener(...)

```typescript
setOnFeatureClickListener(callback?: MapListenerCallback<FeatureClickCallbackData> | undefined) => Promise<void>
```

| Param | Type |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **`callback`** | <code><a href="#maplistenercallback">MapListenerCallback</a>&lt;<a href="#featureclickcallbackdata">FeatureClickCallbackData</a>&gt;</code> |

--------------------


### setOnMarkerClickListener(...)

```typescript
Expand Down Expand Up @@ -1158,6 +1237,11 @@ Describes the style for some region of a polyline.
| **`segments`** | <code>number</code> | The length of this span in number of segments. |


#### FeatureStyles

Feature styles, identified by the feature id


#### CameraConfig

Configuration properties for a Google Map Camera
Expand Down Expand Up @@ -1243,6 +1327,17 @@ Controls for setting padding on the 'visible' region of the view.
| **`longitude`** | <code>number</code> |


#### FeatureClickCallbackData

| Prop | Type |
| ---------------- | ------------------------------------------------------------ |
| **`mapId`** | <code>string</code> |
| **`featureId`** | <code>string</code> |
| **`latitude`** | <code>number</code> |
| **`longitude`** | <code>number</code> |
| **`properties`** | <code>Record<string, any></code> |


#### PolygonClickCallbackData

| Prop | Type |
Expand Down Expand Up @@ -1296,6 +1391,14 @@ Supports markers of either "legacy" or "advanced" types.
### Enums


#### FeatureType

| Members | Value | Description |
| ------------- | ---------------------- | ----------- |
| **`Default`** | <code>'Default'</code> | Default |
| **`GeoJSON`** | <code>'GeoJSON'</code> | GeoJSON |


#### MapType

| Members | Value | Description |
Expand Down
Loading
Loading