Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
wegorz23 Posted August 8, 2019 Posted August 8, 2019 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/
bfarber Posted August 8, 2019 Posted August 8, 2019 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.
wegorz23 Posted August 12, 2019 Author Posted August 12, 2019 Any particular files that I could edit? Cannot find them at all in ACP
bfarber Posted August 12, 2019 Posted August 12, 2019 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
wegorz23 Posted September 12, 2019 Author Posted September 12, 2019 Do you have any idea how to create it? I found this file
Recommended Posts
Archived
This topic is now archived and is closed to further replies.