Google maps custom markers on ionic


#1

Hi guys,

I am using custom markers on google maps, and they work perfectly on browser mode, but the problem happens with device, i can’t get picture of marker, not sure if I am placing image of marker right.

This is the code I am using.

var marker = new google.maps.Marker({
	position: myLatLng,
	map: this.map,
	title: 'Pumpa',
	icon: {
		url: "../assets/img/2.png",
		scaledSize: new google.maps.Size(30, 30)
	}
});

any clues where should i put marker image and what path should I use then, thanks in advance fellas.

Cheers!