I'm new to google maps or rather android programming. Nevertheless I just managed to set up a google map for an internet browser. I created several custom markers (markers with my own icon) which have a specific clickable area.
For google maps for internet browsers this down by
var shape = {
coords: [1, 1, 1, 20, 18, 20, 18, 1],
type: 'poly'
};
for (var i = 0; i < beaches.length; i++) {
var beach = beaches[i];
var marker = new google.maps.Marker({
position: {lat: beach[1], lng: beach[2]},
map: map,
icon: image,
shape: shape,
title: beach[0],
zIndex: beach[3]
});
}
So you define a shape which will be your clickable area of the marker. This works.
Now I like to develop my google map application for an android device. I want the same marker icon as I used in google maps for browsers. Though this is not written in JavaScript like before but in Java and I've already done it. But I can't manage to find an option to create a clickable or rather a touchable area for my custom markers on android google maps! There is even a larg area around my custom icon and I can't change it.
So do you know an option how I can define the clickable/touchable area for google map markers for android? Or is it not possible because the thumb isn't accurate as a computer mouse?
Screenshot of my map with the problem
With kind regards, Taskmanager