Help with Google Maps on Ionic 3

1

I've recently been working on an application with the IONIC 3 framework, I'm working with Google maps and I managed to generate a map in my application with my exact location, but I do not know how to make the user choose a Any location other than the one that generates me by default took several days and I can not find information to help me.

    
asked by Danny 28.04.2018 в 06:42
source

1 answer

0

If you have already been able to generate the map, I imagine that you have all the appropriate configurations. Look at this example:

link

You can indicate to the user by means of some input the longitude and latitude and save it in an object:

var uluru = {lat: this.inputLat, lng: this.inputLng};
var map = new google.maps.Map(document.getElementById('map'), {
    zoom: 4,
    center: uluru
});
    
answered by 28.04.2018 в 07:47