How to reduce the filling of the Google Maps Places v3 InfoWindow API

I tried to get the object identifier using FireBug, but did not succeed.

I also played with InfoBox code from Google Maps, but was too complicated for the little thing I needed to just reduce the filling of the info window.

+2
source share
1 answer

Line 17 of the page you are linking to shows how the infowindow content is configured:

infowindow.setContent('<div><strong>' + place.name + '</strong><br>' + address); 

You need to install an add-on for the inline (for example style="padding: 0px;" ) or CSS class (for example class="myInfoWindow" ), and then set the CSS properties in your head or a separate CSS file.

Thus, using the first, you change the line to:

 infowindow.setContent('<div style="padding: 0px;"><strong>' + place.name + '</strong><br>' + address); 
-2
source

Source: https://habr.com/ru/post/916041/


All Articles