• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Gmaps

Status
Not open for further replies.

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
6,081
Country
us-wisconsin
Hi all.

For some time, Luis Sa has been hosting GMaps which allows you to view the world in Google, MS Live ( Bing! ), and Yahoo maps. It allows a large image to be generated, which can also be saved if using a web-shot utility with the web browser... I like Mozilla Fireox with the FireShot addon.

The bounds of the image are also available for copying.

Example:

Code:
[GEOGRAPHIC]
North=41.59663816589289
South=41.57737908284747
West=-8.462176322937012
East=-8.427844047546387


An image saved as test.bmp, with a text file as above named test.txt will automatically be registered on import into SBuilderX or SBuilder... very handy.

Luis' code uses ASP, which prevents the code from easily being altered for similar projects, and requires an ASP compatible website or local server to run.

http://www.ptsim.com/sbuilder/gmaps.htm

I have converted the code to run in plain javascript, which allows the scripts to run on almost any website, and can run locally on anyone's computer! I also disabled the enlarged map scrolling, to prevent errors in the georeferencing.

Here's a website I setup:

RhumbaMaps online

And better yet, I'm attaching a zip file of the scripts as HTML files that will run on your own computer without needing access to either website. Examine the readme file. Play with the code and see what you can derive.

Download RhumbaMaps

On the local computer, you shouldn't need a key from Google or Yahoo, but if you host it on a website, you'll need your own access codes.


+++++++++++++++

The Yahoo map won't export at the right size. 1600x1200 becomes 1608x1216. 3200x2400 becomes 3208x2416.

Top, Bottom, and Left have an 8-pixel border.

In PaintshopPro 8 I can lasso-select the white area, invert selection, and then menu item Image | Crop to Selection... and save.

Then it works fine. I can't find a work-around in the code... Yahoo maps are just this way.

+++++++++++++++

Dick
 
Last edited:
Status
Not open for further replies.
Back
Top