OpenAIP layer in Virtual Radar Server

949 views
Skip to first unread message

Ronny Jonckers

unread,
Aug 8, 2022, 4:11:45 AM8/8/22
to OpenAIP - Aviation Data Platform

Hello

since a few days my overlay in the Virtual Radar Sarver no longer works. My HTML file is as follows:

 

<script type="text/javascript">

    if(VRS && VRS.globalDispatch && VRS.serverConfig) {

        VRS.globalDispatch.hook(VRS.globalEvent.bootstrapCreated, function(bootStrap) {

         

            if(bootStrap.hookMapInitialised) {

 

                bootStrap.hookMapInitialised(function(pageSettings) {

 

                    if(pageSettings.mapPlugin && pageSettings.mapPlugin.getNativeType() === 'GoogleMaps') {

 

                        var map = pageSettings.mapPlugin.getNative();

                       

                

 

 

//Add airspace layer

 

 

        var myMapType = new google.maps.ImageMapType({

getTileUrl: function(coord, zoom) {

return "http://1.tile.maps.openaip.net/geowebcache/service/tms/1.0.0/openaip_basemap@EPSG%3A900913@png/" +

zoom + "/" + coord.x + "/" + (Math.pow(2, zoom) - coord.y - 1) + ".png";

},

tileSize: new google.maps.Size(256, 256),

maxZoom: 9,

minZoom: 0,

name: 'mymaptype',

transparent: true,

opacity: 0.5,

});

 

map.overlayMapTypes.insertAt(0, myMapType);

 

 

 

                    }

                });

            }

        });

    }

</script>

 

Can you help me?

Do I need to adjust something in this file?

many greetings,

Ronny Jonckers
(i have a client ID number 3f661d1d20e9d6..................)

now.jpg
before.JPG

openaip net

unread,
Aug 8, 2022, 12:33:53 PM8/8/22
to OpenAIP - Aviation Data Platform
Hi Ronny,

all services have moved to new endpoints with the release of openaip v2 in april. As annouced, the old seevices did not receive any more updates and have been shutdown on 1.08.2022. You can adjust the TMS url to the new endpoints. Please read the docs on how to request TMS tiles here:  https://docs.openaip.net/?urls.primaryName=Tiles%20API#/Tile%20Data/get_data__layer___z___x___y__png
Please note that the new endpoints provide a "per content type" layers, i.e. a separate endpoint for "airports", "airspaces" ...

Let me know if you need any more help.

Cheers,

Stephan

openaip net

unread,
Aug 9, 2022, 7:06:15 AM8/9/22
to OpenAIP - Aviation Data Platform
For reference and future users: Openaip TMS layers can be injected using a VRS "Custom Plugin". First, install the Custom Plugin feature for VRS from the VRS website. Openaip layers are now "injected" into the main VRS body HTML using the attached HTML file "vrs_openaip_layers.html". The attached HTML file must be configured with the custom plugin to be injected "at the end of body". 
Bildschirmfoto 2022-08-09 um 12.55.39.jpg
Bildschirmfoto 2022-08-09 um 12.54.37.jpg
vrs_openaip_layers.html
Bildschirmfoto 2022-08-09 um 12.54.48.jpg

Libor Lang

unread,
May 3, 2023, 12:48:17 PM5/3/23
to OpenAIP - Aviation Data Platform
Hi,
I have a problem. After a few days it stopped working for me on VRS, I only have a clean map. Are there any other settings or downloads needed?

Dne úterý 9. srpna 2022 v 13:06:15 UTC+2 uživatel opena...@gmail.com napsal:

openaip net

unread,
May 3, 2023, 1:19:00 PM5/3/23
to OpenAIP - Aviation Data Platform
Hi,

I assume that the deprecated tile URLs are used. As of 2.05.2023, we only support a single general layer "openaip" to reduce load on our servers. I don't know how to configure VRS but I guess that it's just a matter of changing the Tileserver URL to only request layer 'openaip' instead of e.g. 'airspaces' and 'airports'.

Cheers,

Stephan

Libor Lang

unread,
May 3, 2023, 2:06:20 PM5/3/23
to OpenAIP - Aviation Data Platform
I used the script given here with instructions, could it be modified somehow?

Dne středa 3. května 2023 v 19:19:00 UTC+2 uživatel opena...@gmail.com napsal:

openaip net

unread,
May 3, 2023, 2:13:06 PM5/3/23
to OpenAIP - Aviation Data Platform
Remove all TileUrls from the script except one. Then replace with:


This should work.

Libor Lang

unread,
May 3, 2023, 2:49:33 PM5/3/23
to OpenAIP - Aviation Data Platform
Thanks,
Everything works great

Dne středa 3. května 2023 v 20:13:06 UTC+2 uživatel opena...@gmail.com napsal:

Ronny Jonckers

unread,
May 5, 2023, 5:42:39 AM5/5/23
to OpenAIP - Aviation Data Platform
Thanks, works (even better) as before :-)

Op woensdag 3 mei 2023 om 20:49:33 UTC+2 schreef ok1s...@gmail.com:

Libor Lang

unread,
Oct 15, 2023, 1:29:32 PM10/15/23
to OpenAIP - Aviation Data Platform
Is there any change that the maps stopped working?

Dne pátek 5. května 2023 v 11:42:39 UTC+2 uživatel rjon...@gmail.com napsal:

webmaster

unread,
Oct 16, 2023, 1:47:51 AM10/16/23
to OpenAIP - Aviation Data Platform
Both the WMS and MVT service work. What error do you get when the tiles are loaded?

Libor Lang

unread,
Oct 16, 2023, 9:21:11 AM10/16/23
to OpenAIP - Aviation Data Platform
Tiles will not appear at some distances.2023-10-16 (1).png2023-10-16 (2).png2023-10-16 (3).png2023-10-16.png

Dne pondělí 16. října 2023 v 7:47:51 UTC+2 uživatel webmaster napsal:
Reply all
Reply to author
Forward
0 new messages