albar965 / littlenavmap

Little Navmap is a free flight planner, navigation tool, moving map, airport search and airport information system for Flight Simulator X, Microsoft Flight Simulator 2020, Prepar3D and X-Plane.
https://albar965.github.io/littlenavmap.html
GNU General Public License v3.0
1.28k stars 164 forks source link

added plugin type "widget", added documentation accordingly, reformat… #1132

Closed u-an-i closed 3 months ago

u-an-i commented 3 months ago

…ted and rephrased toolbar API documentation, added example plugin for widget, enhanced example plugin for exclusive plugin to demo attribute overriding, minor ui update to ol-map plugin, let map zoom be default quality initially, afterwards subsequent continued zoom then uses fast map quality, minor ui update re checkbox positioning, automated and auto-safeguarded plugin type transfer, don't reinit map or addon iframe when same content already present

u-an-i commented 3 months ago

@albar965 i was in a desire to implement a streak of ideas.

albar965 commented 3 months ago

i was in a desire to implement a streak of ideas.

I fully with you but we've gotta be cautious not to break plugins using the API like https://flightsim.to/file/43086/little-navmap-vr-panel and https://flightsim.to/file/43086/little-navmap-vr-panel .

Alex

albar965 commented 3 months ago

Nice. Like the floating ICAO field in the OL map. :slightly_smiling_face:

u-an-i commented 3 months ago

I fully with you but we've gotta be cautious not to break plugins using the API like https://flightsim.to/file/43086/little-navmap-vr-panel and https://flightsim.to/file/43086/little-navmap-vr-panel .

Alex

Sure! I wasn't aware other web plugins exist. Those 2 are the same link. They appear to be using the wep api. That is not changed ! The web plugin api did change with the previous PR regarding initialisation:

function init (message) { var returned_Value = message.pluginParent.callback(message.pluginParent.callback.TYPE_XXX, stop_Method); ... instead of function init (callback, version) { var returned_Value = callback(callback.TYPE_XXX, stop_Method); ....

This was done to make possible future migration to a different communication technology more straightforward if iframe security changes occur.

albar965 commented 3 months ago

Copy and paste error: https://flightsim.to/file/43086/little-navmap-vr-panel https://flightsimulator.me/simulators/flight-simulator/panels/105-ingamepanel-navmap-for-flight-simulator

Alex