IONIC Apps - How To...
I'm attempting to convert my apps from JQM to IONIC with various margins of success.
My main issue is that there seems to be a lack of documentation for the "how-to" when you need to use javascript to perform tasks.
It would help if someone could tell me how for example, I refer to a Google Map in javascript.
I'd like to implement javascript to setup/clear markers, to set bounds etc but have no idea how to address this in IONIC.
In JQM projects I could simply use var map = Apperyio("GoogleMap1") as an example. I can't seem to do this in IONIC and it's so frustrating that despite trying to find documentation, I can't find any examples of addressing elements in IONIC.
In a previous post here, I found a user had used the following code for markers, this causes errors for me, probably because I am missing something.....
PLEASE HELP!
code
var googleMapInstance = $scope.map.control.getGMap();
var googleMapBounds = new google.maps.LatLngBounds();
var markers = markersarray;
var image = {
url: 'files/images/CarIcon20x40.png',
size: new google.maps.Size(20, 40),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(10, 20)
};
/code