Jump to content

Custom map in External Home Page


Lebitek

Recommended Posts

Good morning, we have recently migrated from VAM Manager and I need a little help, we have a Home Page that is outside the 'PHPVMS' folder of the installation, I have managed to make the Pilots Markers, N ° Flights, Routes etc. work. . But the custom map we have needs to show the Live Flights of our PHPVMS installation and I don't know exactly what codes I should change and where the Custom Map file should be, if I can help someone I would be super grateful.

Link to comment
Share on other sites

  • 3 weeks later...

Versión phpvms 5.5.2

Versión php 5.5

MySQL 

 

Wingovirtual.com

 

This is our home page, our own design of the initial page, we had a map which showed the visitors the flights in real time, the phpvms design that we use is Skyblue and that is only shown as a crew center, once logged in . We would like to configure our map to show the flights in real time.

Link to comment
Share on other sites

You need to include the below line of script somewhere on your Front Page, most include it in this;  frontpage_main.php. This should be easy as I see  your using HTML5 and Bootstrap, which of course will allow you to use some powerful scripting according to your Web Master's knowledge. The code is this.

<?php MainController::Run('Acars', 'index'); ?>

This will instantly call the ACARS Map and embed it to the front page. Be sure if using Google Maps, you have a script line also for your API Key or the map will not work for Google. This is why most of us have switched to Leaflet Maps. Your Google API script should be in 2 places if using bootstrap, the <head> and the <body>. 

Link to comment
Share on other sites

2 hours ago, Heritage1 said:

You need to include the below line of script somewhere on your Front Page, most include it in this;  frontpage_main.php. This should be easy as I see  your using HTML5 and Bootstrap, which of course will allow you to use some powerful scripting according to your Web Master's knowledge. The code is this.

<?php MainController::Run('Acars', 'index'); ?>

This will instantly call the ACARS Map and embed it to the front page. Be sure if using Google Maps, you have a script line also for your API Key or the map will not work for Google. This is why most of us have switched to Leaflet Maps. Your Google API script should be in 2 places if using bootstrap, the <head> and the <body>. 

 

That code will only work if the frontpage is calling to config files if it is not that code won't work. By the sounds of it he wants to implement the map on a web page outside of phpvms, thus your code won't work unless it is making a call to the config files.

Link to comment
Share on other sites

I really appreciate your help, we have a personalized map and it was working with the VAM Manager system, that map was created for us by a Webmaster that I hired, but we do not have a webmaster in our VA and I do everything related to our website. I would like to know how the process would be so that the traffic can be seen on our map. If you want to see the code, hopefully I can make that map work on the external page

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
On 10/24/2020 at 7:26 PM, Lebitek said:

I would be very grateful if someone can help me insert the map on the external page (main page) so that visitors can see the map and flights online. wingovirtual.com

 

Looking at your website, it appears to managed to get it working. Could you please share how you managed it? Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...