Jump to content

Recommended Posts

Posted

Hello all, after couple of years i'm back again. Well, i made the conversions to openstreet map, in the page schedule route map all is nice and good but in mi old pireps when i look the route just show the tower in departure and arrival airport no route made. Have any an idea whow can i solve that issue.

 

Thanks

Posted

Hi All,

 

Hope you are all doing well and staying safe. Im trying the conversion to leaflet maps and think I am nearly there, could anyone tell me where I have gone wrong as the maps are showing as grey with the Leaflet name in the corner. This can be seen at http://simplymagpie.co.uk/index.php/acars

 

Many thanks,

 

Gary

Posted
27 minutes ago, GazzT3074 said:

Hi All,

 

Hope you are all doing well and staying safe. Im trying the conversion to leaflet maps and think I am nearly there, could anyone tell me where I have gone wrong as the maps are showing as grey with the Leaflet name in the corner. This can be seen at http://simplymagpie.co.uk/index.php/acars

 

Many thanks,

 

Gary

Have you followed the github and transferred all the relative files over ?

Any issues give us a private massage. Im in the UK

  • 1 month later...
  • Administrators
Posted

Do the conversion and apply to the crystal skin. Change your site skin to crystal to check it. If it works on crystal and not on your present skin, contact the skin developer to help you out.

 

What skin are you using?

Posted
26 minutes ago, GazzT3074 said:

Hi All,

 

Its a custom skin that was applied by my webmaster, and @flyalaska I did add it to the config as stated in the instructions :)

 

Thanks

 

Gary

 

Can you provide url of your website ?

  • 2 weeks later...
  • 10 months later...
Posted

Updated OSM for flown_routes_map from Discord by Justin RR
 

<div id="routemap" style="width: 100%; height: 800px;"></div>

            <script src="<?php echo SITE_URL?>/lib/js/base_map.js"></script>
            <script type="text/javascript">

            const map = createMap({
                render_elem: 'routemap',
                provider: '<?php echo Config::Get("MAP_TYPE"); ?>',
            });
            var latlngs = [
                    <?php
                $shown = array();
                
                foreach($allschedules as $route)
                {    
                    // Dont show repeated routes        
                    if(in_array($route->code.$route->flightnum, $shown))
                        continue;
                    else
                        $shown[] = $route->code.$route->flightnum;
                    
                    if(empty($route->arrlat) || empty($route->arrlng)
                        || empty($route->deplat) || empty($route->deplng))
                    {
                        continue;
                    }
                ?>
                [
                    new L.LatLng(<?php echo $route->deplat; ?>, <?php echo $route->deplng; ?>),
                    new L.LatLng(<?php echo $route->arrlat; ?>, <?php echo $route->arrlng; ?>),
                ],
                
                <?php } ?>

            ];
            const pointsLayer = L.geodesic(latlngs, {
                weight: 2,
                opacity: 0.5,
                color: '#2e4a66',
                steps: 10
            }).addTo(map);
                </script> 

 

  • 3 weeks later...
Posted

hello.....

 

can somebody direct me how to change the route map displayed when i click the route on the pilot's pirep detail on the Admin panel?

I could manage to convert the map on the va site, but not on this particular map in the admin panel...
 

i've attached the map results from the same pirep, one from the pilot's logbook, and one from the admin pilot pirep list



thanks...


version 5.5.2.72
php7.2
 

map 1.png

map2.png

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