How To Integrate Polylines into the IONIC Appery Version of the Google Map object
I use the Appery Google Map object with markers and this works well.
I need to incorporate Polylines onto the map.
I've found code to implement this in non-Appery mapping, but can you tell me how we incorporate the Poly lines into the Appery Map object in IONIC projects?
The code to do this outside of Appery Google Map object is:
code
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 3,
center: {lat: 0, lng: -180},
mapTypeId: 'terrain'
});
var flightPlanCoordinates = [
{lat: 37.772, lng: -122.214},
{lat: 21.291, lng: -157.821},
{lat: -18.142, lng: 178.431},
{lat: -27.467, lng: 153.027}
];
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
geodesic: true,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
strokeWeight: 2
});
flightPath.setMap(map);
}
/code
thanks
Andy