Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 8, 20195 yr Hello, is there any chance of editing mapbox widget except those options provided in ACP? I want to change its upfront zoom - for now we have whole world while we want to change its zoom to Poland for example. https://www.audiostereo.pl/clubs/
August 8, 20195 yr There's nothing built in to do this, but you can pass a zoom level to the mapping classes if you write a plugin/edit your templates.
August 12, 20195 yr Create a plugin on \IPS\GeoLocation\Maps\Mapbox /** * Render * * @param int $width Width * @param int $height Height * @param float|NULL $zoom The zoom amount (a value between 0 being totally zoomed out view of the world, and 1 being as fully zoomed in as possible) or NULL to zoom automatically based on how much data is available * @return string */ public function render( $width, $height, $zoom=NULL ) You could change the default $zoom value from NULL to something else
Archived
This topic is now archived and is closed to further replies.