map.setCenter(new google.maps.LatLng(locationX,locationY);
if I do this way, google puts a marker in the center of map canvas. I want that it will be not center, bot for example top right corner. Is it possible?
map.setCenter(new google.maps.LatLng(locationX,locationY);
if I do this way, google puts a marker in the center of map canvas. I want that it will be not center, bot for example top right corner. Is it possible?
Instead of setCenter, try the following
panTo(latLng:LatLng)
Changes the center of the map to the given LatLng. If the change is less than both the width and height of the map, the transition will be smoothly animated.