Jump to content

Recommended Posts

Posted

Hi guys ! hope everyone is having a nice holiday ! I know this has come up before, but I cant find what I'm looking for.

I've got the great circle mapper installed on my front page and working, but I want to install it in the pilot profile to show an individuals recent flights on the map. Anyone have this code ?

  • Like 1
  • 2 weeks later...
Guest lorathon
Posted

Try this for profiles

<?php
       $flights = PIREPData::getLastReports($userinfo->pilotid, '10');                                                                      
       $string = "";
       foreach($flights as $flight)
       {       
               $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+';
       }                                                                       
?>

<img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br />
             Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a>

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...