Just me again....
I have created another map in my gauge to mimick the FSX Map feature. All it does is display airports, NDB's and VOR's. I applied the panning code and after some grief with it flipping the map, got it working to where it will pan. The issue... you hit one of the pan buttons and it moves the map, but instantly brings it back to center. Is there something I am missing to get it to stay where you pan?
Map Section:
Mouse Section:
Thanks
Greg
I have created another map in my gauge to mimick the FSX Map feature. All it does is display airports, NDB's and VOR's. I applied the panning code and after some grief with it flipping the map, got it working to where it will pan. The issue... you hit one of the pan buttons and it moves the map, but instantly brings it back to center. Is there something I am missing to get it to stay where you pan?
Map Section:
Code:
<Element Name="MainMapPage">
<Visible>(L:MapPage,bool)</Visible>
<Position X="100.0" Y="94.5"/>
<Element Name="MainMap">
<CustomDraw Name="fs9gps:2:map" X="600" Y="550" LayerBorders="Yes" LayerFlightPlan="No" FlightPlanLineWidth="2.0" Bright="Yes">
<CenterX>300</CenterX>
<CenterY>275</CenterY>
[COLOR="Red"] <Zoom>(L:map_ZoomFactor,number) 1852.0 *</Zoom>
<PanReset>(L:TerrainPanning, enum) !</PanReset>
<PanVertical>(L:PanVert,enum) 100 *</PanVertical>
<PanHorizontal>(L:PanHorz,enum) 100 *</PanHorizontal>
<TrackUp>0</TrackUp>[/COLOR]
<Latitude>(A:GPS POSITION LAT, Radians)</Latitude>
<Longitude>(A:GPS POSITION LON, Radians)</Longitude>
<Heading>(A:Plane heading degrees true, radians)</Heading>
<DetailLayerTerrain>3</DetailLayerTerrain>
<DetailLayerBorders>1</DetailLayerBorders>
<DetailLayerAirports>3</DetailLayerAirports>
<DetailLayerVORs>2</DetailLayerVORs>
<DetailLayerNDBs>-1</DetailLayerNDBs>
<DetailLayerILSs>1</DetailLayerILSs>
<LayerTerrain>1</LayerTerrain>
<LayerBorders>1</LayerBorders>
<LayerAirports>1</LayerAirports>
<LayerVORs>1</LayerVORs>
<LayerILSs>1</LayerILSs>
<LayerNDBs>1</LayerNDBs>
<LayerIntersections>0</LayerIntersections>
and on it goes....
Mouse Section:
Code:
<Area Left="585.0" Top="425.0" Width="42.5" Height="40">
<Visible>(L:MapPage,bool)</Visible>
<Cursor Type="Hand" Repeat="Yes"/>
<Tooltip>PAN NORTH</Tooltip>
<Click Repeat="Yes">
(L:PanVert,enum) 1 - (>L:PanVert,enum)
</Click>
</Area>
<Area Left="625.000" Top="482.5" Width="40" Height="42.5">
<Visible>(L:MapPage,bool)</Visible>
<Cursor Type="Hand" Repeat="Yes"/>
<Tooltip>PAN EAST</Tooltip>
<Click Repeat="Yes">
(L:PanHorz,enum) 1 + (>L:PanHorz,enum)
</Click>
</Area>
<Area Left="585.0" Top="545.0" Width="42.5" Height="40">
<Visible>(L:MapPage,bool)</Visible>
<Cursor Type="Hand" Repeat="Yes"/>
<Tooltip>PAN South</Tooltip>
<Click Repeat="Yes">
(L:PanVert,enum) 1 + (>L:PanVert,enum)
</Click>
</Area>
<Area Left="545.0" Top="475.0" Width="40" Height="42.5">
<Visible>(L:MapPage,bool)</Visible>
<Cursor Type="Hand" Repeat="Yes"/>
<Tooltip>PAN WEST</Tooltip>
<Click Repeat="Yes">
(L:PanHorz,enum) 1 - (>L:PanHorz,enum)
</Click>
</Area>
<Area Left="590.0" Top="480.0" Width="30" Height="40">
<Visible>(L:MapPage,bool)</Visible>
<Cursor Type="Hand" Repeat="Yes"/>
<Tooltip>PAN RESET</Tooltip>
<Click Repeat="Yes">
(L:TerrainPanning, enum) ! (>L:TerrainPanning, enum)
</Click>
</Area>
Thanks
Greg



