Move CartoDB-Map to show full InfoWindow

المشرف العام

Administrator
طاقم الإدارة
In CartoDB, if I customize the styles of an InfoWindow, the map moves not enough to always display the full InfoWindow.

For example: If I position the div.cartodb-popup to left:26px and bottom:16px to get it (the bottom left corner) open exactly where the user clicked, larger InfoWindows will not be displayed fully inside the map (Screenshot left), require the user to drag the map to fully see the infowindow (Screenshot right).



How can I tell CartoDB to move the map X pixels more to the left or right and top or bottom, so the user can see the full InfoWindow (Screenshot right)?



أكثر...
 
أعلى