⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.rtf

📁 GIS地理信息系统开发。大名鼎鼎的MAPX+VisualBasic6.0软件开发
💻 RTF
字号:
Note: This sample application and corresponding sample code is provided for example purposes only.  It has not undergone rigorous testing and as such should not be shipped as part of a final application without extensive testing on the part of the organization releasing the end-user product.

This Visual Basic 6.0 example uses the latest version of the MapX Control.  The main goal of this example is to show how to use the Animation Layer feature.  It also demonstrates how to add a point to a layer using a tool.  There is also code that permits the automatic resizing of the MapX control when you resize the form's window.

Files:

CarTracker.vbp
frmCarTracker.frm
frmCarTracker.frx
modAnim.bas

Overview:

The application tracks vehicles on the map by updating the position of each using a speed and heading through the use of a timer.

To use the program:

Choose a font for a vehicle by clicking on the "Pick Vehicle Font" button.

Click on the "Plot Vehicle Tool" button and click on the map at the location that you want to add the vehicle to.  This will add a vehicle to the map at the location you clicked. It will give the vehicle a name such as "Vehicle 1" and assign it initial vector data of 0 for a heading and 0 for speed and add it to the listbox of vehicles.

Click in the listbox on the vehicle name.  This will enable the textboxes to the right of the listbox.  You may now change the name of the vehicle and assign it vector information (heading and speed).

Set the selected vehicle's speed.  When the speed of a is greater than zero, the timer event handler will move the vehicle.

Set the vehicle's direction to any number from 0 to 360 degrees.  If you are zoomed way out on the map, set the vehicle's speed to a large number like 100000 so its movement is detectable.

Click the Layer Control button to bring up the MapX stock Layer Control dialog.  Try turning on automatic labels for your vehicles.

Click the Zoom In Tool and Zoom Out Tool buttons and then click on the map to change the zoom.  If you right click on the map, you will bring up the MapX PropertyPage.  

You can change the current tool or zoom of the map in this dialog.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -