beatrizsmerino/vue-users

Google maps need a key for create it custom

Closed this issue · 3 comments

In the view users the map is not showing. Ask for the key. How can I display a custom map without a key to test as a developer?

To do it create a branch with the name of hotfix/map, I am using git flow.
The command it is:
git flow hotfix start map

Captura de pantalla 2019-10-17 a las 6 28 38

It can be used: vue2-leaflet

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'.

image

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'.

image