wegorz23 Posted August 8, 2019 Share 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/ Link to comment Share on other sites More sharing options...
bfarber Posted August 8, 2019 Share 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. Link to comment Share on other sites More sharing options...
wegorz23 Posted August 12, 2019 Author Share Posted August 12, 2019 Any particular files that I could edit? Cannot find them at all in ACP Link to comment Share on other sites More sharing options...
bfarber Posted August 12, 2019 Share 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 Link to comment Share on other sites More sharing options...
wegorz23 Posted September 12, 2019 Author Share Posted September 12, 2019 Do you have any idea how to create it? I found this file Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.