Jump to content

Calendar event google map zoom


Christophe

Recommended Posts

  • 1 year later...
Posted

The only way to do that is to hardcode zoom parameter in applications/calendar/sources/Event/Event.php:

return \IPS\GeoLocation::buildFromJson( $this->location )->map()->render( $width, $height );

replace with

return \IPS\GeoLocation::buildFromJson( $this->location )->map()->render( $width, $height, 1 );

The third parameter is very strange and not equal to Google default zoom parameters.

On my website I also have a problem: map thumbnail always shows me the same place in my city, but if I click on this thumbnail, a full Google Maps website is opened and the point is placed correct.

If you specify an exact address of a building, the best zoom would be chosen automatically.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...