AlexOlPed Posted September 23, 2020 Report Share Posted September 23, 2020 (edited) Someone know how I can do so that on the Leaflet map, where the flights that are live appear to me, when I click on one of them, the map zooms, I would like it not to zoom when I click on one of the flights of the Map. Someone know how to I can do? Skin: StislaSkin phpVMS 5.5.2.72 simpilot/php7.2 Edited September 23, 2020 by AlexOlPed Quote Link to comment Share on other sites More sharing options...
Strider Posted September 23, 2020 Report Share Posted September 23, 2020 Look for: // If they selected autozoom, only do the zoom first time if (opts.autozoom == true && run_once == false) { map.fitBounds(bounds); run_once = true; } Comment it out. That should stop the zoom when you click on a flight. Do not remove it, so if it doesn't work or it breaks something you can just uncomment it and it will work again. Quote Link to comment Share on other sites More sharing options...
AlexOlPed Posted September 23, 2020 Author Report Share Posted September 23, 2020 7 minutes ago, Strider said: Look for: // If they selected autozoom, only do the zoom first time if (opts.autozoom == true && run_once == false) { map.fitBounds(bounds); run_once = true; } Comment it out. That should stop the zoom when you click on a flight. Do not remove it, so if it doesn't work or it breaks something you can just uncomment it and it will work again. I have commented on what you tell me in the acarsmap.js file but it keeps zooming when I click on a flight that is live. Quote Link to comment Share on other sites More sharing options...
AlexOlPed Posted September 23, 2020 Author Report Share Posted September 23, 2020 I have already found how to do it, I have commented the line 134 "map.fitBounds (selPointsLayer.getBounds ());" from the acarmaps.js file👍 👍 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.