Jump to content
Sign in to follow this  

phpvms Integrate with Ammap

Recommended Posts

Hi, I am trying for 2 days to solve the code for the connection with all the Aiports and the Map. Where is the mistake?

// Print out rows
$airports = OperationsData::getAllAirports();
  /* Above <td> You have to put it */
foreach($airports as $airport) {
            "svgPath": targetSVG" ','
  echo '  "title": ' . $airport->name . ','
  echo '  "latitude": ' . $airport->lat . ','
  echo '  "longitude": ' . $airport->lng . ''
  echo " }";
} ?>

So I bring at least one airport ...

        "svgPath": targetSVG,
        "title": "<?php echo $airport->name; ?>",
        "latitude": <?php echo $airport->lat; ?>,
        "longitude": <?php echo $airport->lng; ?>


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this