i trying center marker's info window because it's visible. there 2 images showing problem. on first title of info window not visible , on second image how should like. here code:
mmap.setonmarkerclicklistener(new googlemap.onmarkerclicklistener() { @override public boolean onmarkerclick(final marker marker) { latlng markerlocation = marker.getposition(); point mappoint = mmap.getprojection().toscreenlocation(new latlng(markerlocation.latitude, markerlocation.longitude)); mappoint.set(mappoint.x, mappoint.y - 100); cameraupdate cu = cameraupdatefactory.newlatlng(mmap.getprojection().fromscreenlocation(mappoint)); mmap.animatecamera(cu, new googlemap.cancelablecallback() { @override public void onfinish() { if (marker != null) marker.showinfowindow(); } @override public void oncancel() { } }); return false; } });
the problem line:
returning false;
should be:
returning true;
Comments
Post a Comment