mapbox-gl-vue
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "mapbox-gl-vue", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "A Vue.js component for Mapbox GL js", | ||
@@ -5,0 +5,0 @@ "main": "dist/Mapbox.js", |
@@ -83,2 +83,4 @@ # Mapbox GL JS Vue.js | ||
mapOptions.container will default to 'map' (giving the container and id of 'map'). If you want to change this or use multiple map components on the same page simply set mapOptions.container. | ||
--- | ||
@@ -238,3 +240,3 @@ | ||
Popups can be a little tricky if you are trying to use Vue directives inside the popup content. This is because the popups are added to the DOM by Mapbox and not compiled by Vue. To get around this you can use extend Vue to create a new Component and then mount that to the popup. Below is an example: | ||
Popups can be a little tricky if you are trying to use Vue directives inside the popup content. This is because the popups are added to the DOM by Mapbox and not compiled by Vue. To get around this you can extend Vue to create a new Component and then mount that to the popup. Below is an example: | ||
@@ -327,2 +329,3 @@ Main js file: | ||
``` | ||
The `popupContent` component can also be extracted to a separate .vue file to clean things up. | ||
@@ -329,0 +332,0 @@ ## Support |
81091
336