- 积分
- 3295
- 最后登录
- 1970-1-1
- 阅读权限
- 255
- 积分
- 3295
- 帖子
- 精华
TA的每日心情 | 怒 2022-3-7 19:30 |
---|
签到天数: 58 天 连续签到: 1 天 [LV.5]QD-中级会员Ⅱ
|
请登陆后查看,谢谢!
您需要 登录 才可以下载或查看,没有帐号?加入
x
本帖最后由 China-音速高铁 于 2013-10-25 19:42 编辑
The Google Maps Overlay is a very popular feature in TS2014. While it is very easy to use there are some fine tuning options that can really help you get the most out of it.This simple tutorial aims to demonstrate, step by step, how to begin the process of creating a route using the Google Maps Overlay.
Set up an API Key
This first step is optional but it is recommended by Google and will grant more data transfer per day from their mapping service. You will need a Google account to get a key, so if you haven’t got one of those yet, do that first.
Once you have an account. go to the Google API Console here.
Click the Create Project button. Note: If you have already done this before, you will be taken straight to the next menu and can choose from the services.
From the next screen, scroll down the long list of services until you find the “Static Maps API” service. Click this to toggle it ON, then read and review the terms and conditions. If you’re happy with these then click Accept.
From the menu on the left hand side you should now click the API Access menu option.
This screen shows a number of bits of information, the important one is in the “Simple API Access” section and is called “API Key” - it will show up as a long list of characters, symboles and numbers. This is the key that you need, select it and press CTRL+C to copy it in to your clipboard.
Start TS2014 and go to Settings followed by Graphical Settings. From here go to the new Google Map Overlay settings screen.
The top-most entry is for the Google Maps API Key. Click in this text field and press CTRL+V to paste the key in.
That’s it, you’re now set up with the API Key and you’re ready to move on to the next step.
Configuration of Google Maps Overlay
The remaining settings on the Google Maps Overlay settings screen will let you adjust how much detail is displayed, the more detail you want to display the more it will need to download.
Set the Google Maps Resolution to your preference, higher resolution data is of course preferred but 1280x1280 is four times bigger to download than 640x640 so I would suggest trying the lower resolution first to see if you get what you want.
The Map Type determines the type of image that will be displayed in the overlay. An example of each type of image is shown below (Road, Terrain, Satellite, Hybrid)
Zoom Level allows you to zoom in and get more detail, the valid range is 13-21 with 13 being the minimum amount of data and 21 being the maximum. Data for different parts of the world have different maximum zoom levels provided, if your zoom level is too high for the region you are in then you will get blank overlay tiles. In this case, keep lowering the value until you start getting mapping data. Generally 16-17 is quite well supported.
Increasing the zoom level also reduces the size of the overlay tiles which will make them conform to terrain better. There is of course a larger download required for the higher zoom levels.
Finally, Tiles Displayed controls the grid of data that will be downloaded surrounding the viewing camera. If you have used a high zoom level you may need to ask for more tiles to continue getting a reasonable coverage, if you are on a lower zoom level then you can ask for fewer tiles as each one is bigger.
You will likely find yourself back to this screen periodically to tune your settings for the region you are in or for the quality of internet connection you are using.
Now that you’ve set up the Google Maps Overlay, it’s time to build a route and see it in action.
For this tutorial we are going to focus on Sheringham on the North Norfolk Railway.
World Coordinates come in a variety of formats, so it is important to make sure you’re using the right one for TS2014. The correct format to use is “Decimal Degrees”. If you’re using the Google Earth application to get our coordinates, you can change it to report these units by going to Tools, Options and change the “Show Lat/Long” setting to read “Decimal Degrees”.
For Sheringham, the Latitude is 52.941728 and the Longitude is 1.207392. I have obtained this from the Google Earth application very simply. For your route, find somewhere reasonably central to set as the origin and ensure that you have the Lat and Long for it.
Now we’re ready to build.
First, click the BUILD menu from the front screen.
From here, click New Route.
On this screen, select the route template that you would like to use to pick up the basic textures, track types and so forth. This will usually be the route that you have on your system that you feel most matches that style of route you want to create.
It is important that you select the ground texture set first and then enter your lat and long second as selecting the ground texture set will overwrite the lat and long with the default origin of the chosen route.
Enter the lat and long, pressing enter after each one.
Finally, click Create, enter the name of your route when asked and then click OK to get into the world editor.
Enable Google Maps Overlay
Once you’re in the world editor you can simply press CTRL+G to enable the Google Maps Overlay.
Fly around the route as normal and orient yourself, it’s easy when the world is placed underneath you!
You may find it necessary to re-enter the lat/long once in the world editor and then jump to that location. You can do this by opening the compass box at the top and entering the details (ensuring to press enter after each number is typed in) followed by clicking on the white triangle on the right hand side.
Tuning the Google Maps Overlay
When the overlay is enabled a new fly-out box appears on the bottom right, move the mouse over to it to slide it out and use it.
The first slider controls the opacity of the overlay. All the way to the left the overlay will be completely invisible, all the way to the right the overlay will completely block out the ground underneath. Often you will find the most comfortable setting somewhere in the middle but it depends on what you’re trying to do so it’s useful to be able to change it quickly while you’re editing.
The second slider height of the overlay above ground level. All the way to the left means lowest and all the way to the right means highest.
The pause and play buttons are used to pause streaming the data. If you are quickly trying to fly from one point of the route to another and don’t need the overlay you may find it quicker to pause the stream, get to where you’re going and then press play again to resume it, rather than have it try to download data you don’t want.
Now get building!
|
|