Jump to content

Flight log map


atulumello

Recommended Posts

Scratch this, I ended up using the gcm as posted.

  <?php
// The user is logged in, so show the map
if(Auth::LoggedIn() == true)
{
?>
<?php
    $pilotid = AUTH::$userinfo->pilotid;
    $flights = PIREPData::findPireps(array('u.pilotid'=>$pilotid), 200);
    $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=790x400&PM=permr:diamond7:green%2b%22%25I%22:white&PC=%fffff" />
<?php
}
//The user is not logged in so don't show anything
else
{
// Do nothing
}
?>

It was posted by multiple members here in past threads.

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