Google maps need a key for create it custom
Closed this issue · 3 comments
beatrizsmerino commented
beatrizsmerino commented
Alterntives to Google maps:
beatrizsmerino commented
It can be used: vue2-leaflet
beatrizsmerino commented
At the moment, statistically, the status
property defined in the data
of 'UserMap.vue', is the one that decides to load a map with 'Google Maps API' or with 'Leaflet API'. If you change your value from false
to true
, the map is loaded with Leaflet of the component 'LeafletMap.vue'.
The idea, in the future, is to check if the attribute apiKey
of the component 'GoogleMap.vue' contains the key or if its value is 'XXXXXX'
.
For it:
- I want to send the value of the key of the child component to the parent component, from 'GoogleMap.vue' to 'UserMap.vue' and check it in the latter by changing the value of the
status
property, - or make this check in 'GoogleMap.vue' change the value of the property
status
and send it to the component 'UserMap.vue'.