Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xml define area

Featured Replies

I want to define an area in which an Element must be visbile

This Area is easy enough:

N31-W86             N31-W85

      -------------------------

      |                            | 

      |                            |

      |                            |

      |                            |

      |                            |

      |                            |

      -------------------------

N30-W86             N30-W85

With following Code:

         <Macro Name="POSLA">(A:Plane Latitude, degrees)</Macro>
	 <Macro Name="POSLO">(A:Plane Longitude, degrees)</Macro>
             <Element>
		<Visible>@POSLA 30 >= @POSLA 31 < &&</Visible>
	     <Element>
		<Visible>@POSLO -86 >= @POSLO -85 < &&</Visible>
	     <Element>
		<Position X="150" Y="595"/>
		   <Text X="120" Y="35" Length="120" Fixed="no" Font="tahoma" FontSize="32" Adjust="Left" VerticalAdjust="center" Color="#FFFFFF" Bright="Yes">
		     <String>test-zone 1A%</String>
		   </Text>
	     </Element>
             </Element>
             </Element>

But how to define an Area that is a Triangle or Trapezium or a Circle?

 

Thanks for your answers,

 

Bassy

 

 

 

  • 3 weeks later...
  • Author

could you give a hint of code for the circle case?

i'm trying for days, but cannot find a solution...

thanks,

  • 2 weeks later...

The Flight Sim gps engine contains GeoCalc variables that will return distance between a pair of lat/lon coordinates.  The center of the circle should be GeoCalcLatitude1, GeoCalcLongitude1, and POSLA and POSLO will be GeoCalcLatitude2, GeoCalcLongitude2.  Then, GeoCalcDistance will yield distance between those two points using whatever units you want (for example, nmiles).

 

To read more about gps variables and how to set up the XML script, please take a look at FS9GPS Module Guidebook.  GeoCalc Group variables start on page 198 and GeoCalcDistance is discussed on page 199.  There are enough XML examples in that reference that you should be able to set up your circle condition.

 

Bob

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.