Skip to content

Commit

Permalink
Change Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
PNKBizz committed Nov 6, 2017
1 parent eb95faa commit 6d53cfa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Type of marker in `marker-type` attribute can be:
:controls="['trafficControl']"
:placemarks="placemarks" //
map-type="hybrid"
@map-was-initialized="initHandler"
>

<ymap-marker
Expand Down Expand Up @@ -126,6 +127,14 @@ data() {

```

# Events

## Map events

| Event name | Payload |
| ----- | ----- |
| 'map-was-initialized' | Link to map instance |

# Attributes

## Map attributes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-yandex-maps",
"version": "0.5.3",
"version": "0.5.4",
"description": "Yandex Maps component for VueJS.",
"main": "vue-yandex-maps.js",
"jsnext:main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/YMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default {
this.myMap.geoObjects.add(myGeoObjects);

utils.createClusters(markers, this.clusterOptions, this.myMap)
.then(() => this.$emit('map-is-initialized', this.myMap));
.then(() => this.$emit('map-was-initialized', this.myMap));
}
},
watch: {
Expand Down

0 comments on commit 6d53cfa

Please sign in to comment.