Loading components/Marker.vue +7 −4 Original line number Diff line number Diff line Loading @@ -10,6 +10,10 @@ export default { location: { required: true }, infoWindow: { type: String, required: false }, icon: { required: false } Loading @@ -22,7 +26,8 @@ export default { if (mapPromise) { mapPromise.then((googleMap) => { const infoWindow = new google.maps.InfoWindow(); console.log(props.location.lat) console.log(props.location.lng) const options = { position: new google.maps.LatLng( props.location.lat, Loading @@ -34,13 +39,11 @@ export default { if (props.icon) { options.icon = props.icon } const marker = new google.maps.Marker({ ...options, }); marker.addListener("click", (event) => { infoWindow.setContent(`hallo`); infoWindow.setContent(props.infoWindow); infoWindow.open(googleMap, marker); }); }); Loading package.json +1 −1 Original line number Diff line number Diff line { "name": "@fawmi/vue-google-maps", "description": "Google Map components for Vue.js 3", "version": "0.2.0", "version": "0.2.3", "private": false, "main": "index.js", "scripts": { Loading Loading
components/Marker.vue +7 −4 Original line number Diff line number Diff line Loading @@ -10,6 +10,10 @@ export default { location: { required: true }, infoWindow: { type: String, required: false }, icon: { required: false } Loading @@ -22,7 +26,8 @@ export default { if (mapPromise) { mapPromise.then((googleMap) => { const infoWindow = new google.maps.InfoWindow(); console.log(props.location.lat) console.log(props.location.lng) const options = { position: new google.maps.LatLng( props.location.lat, Loading @@ -34,13 +39,11 @@ export default { if (props.icon) { options.icon = props.icon } const marker = new google.maps.Marker({ ...options, }); marker.addListener("click", (event) => { infoWindow.setContent(`hallo`); infoWindow.setContent(props.infoWindow); infoWindow.open(googleMap, marker); }); }); Loading
package.json +1 −1 Original line number Diff line number Diff line { "name": "@fawmi/vue-google-maps", "description": "Google Map components for Vue.js 3", "version": "0.2.0", "version": "0.2.3", "private": false, "main": "index.js", "scripts": { Loading