Angello Posted February 26, 2015 Report Share Posted February 26, 2015 the map is not shown, could someone help me? regards https://gyazo.com/b9...04cd642688ab500 Quote Link to comment Share on other sites More sharing options...
StartVM Posted February 26, 2015 Report Share Posted February 26, 2015 Zoom out? Quote Link to comment Share on other sites More sharing options...
Angello Posted February 26, 2015 Author Report Share Posted February 26, 2015 What is the solution? tanks Quote Link to comment Share on other sites More sharing options...
t_bergman Posted February 26, 2015 Report Share Posted February 26, 2015 What is the solution? tanks Bad google api key? Quote Link to comment Share on other sites More sharing options...
mseiwald Posted February 26, 2015 Report Share Posted February 26, 2015 It seems fine to me...you just need to zoom out. 1 Quote Link to comment Share on other sites More sharing options...
magicflyer Posted February 27, 2015 Report Share Posted February 27, 2015 Open up your core/app.config.php, and check your MAP_ZOOM_LEVEL, make sure it's at "12" Quote Link to comment Share on other sites More sharing options...
Angello Posted February 27, 2015 Author Report Share Posted February 27, 2015 Config::Set('MAP_ZOOM_LEVEL', 12); the problem persists, Quote Link to comment Share on other sites More sharing options...
OA01 Posted February 27, 2015 Report Share Posted February 27, 2015 This works... # Google Map Options Config::Set('MAP_WIDTH', '875px'); Config::Set('MAP_HEIGHT', '650px'); # Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP Config::Set('MAP_TYPE', 'G_SATELLITE_MAP'); Config::Set('MAP_LINE_COLOR', '#ff0000'); Config::Set('MAP_CENTER_LAT', '52.308053'); Config::Set('MAP_CENTER_LNG', '4.764167'); Config::Set('MAP_ZOOM_LEVEL', 10); Quote Link to comment Share on other sites More sharing options...
Angello Posted February 28, 2015 Author Report Share Posted February 28, 2015 core/app.config.php # Google Map Options Config::Set('MAP_WIDTH', '875px'); Config::Set('MAP_HEIGHT', '650px'); # Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP Config::Set('MAP_TYPE', 'G_SATELLITE_MAP'); Config::Set('MAP_LINE_COLOR', '#ff0000'); Config::Set('MAP_CENTER_LAT', '52.308053'); Config::Set('MAP_CENTER_LNG', '4.764167'); Config::Set('MAP_ZOOM_LEVEL', 10); not working Quote Link to comment Share on other sites More sharing options...
magicflyer Posted February 28, 2015 Report Share Posted February 28, 2015 Copy/Paste your code of acarsmap.tpl that's in your skins folder, onto this website called pastebin.net. Then, post the link here so we can take a look at the code. Quote Link to comment Share on other sites More sharing options...
Angello Posted February 28, 2015 Author Report Share Posted February 28, 2015 /** * These are some options for the ACARS map, you can change here * * By default, the zoom level and center are ignored, and the map * will try to fit the all the flights in. If you want to manually set * the zoom level and center, set "autozoom" to false. * * You can use these MapTypeId's: * http://code.google.com/apis/maps/documentation/v3/reference.html#MapTypeId * * Change the "TERRAIN" to the "Constant" listed there - they are case-sensitive * * Also, how to style the acars pilot list table. You can use these style selectors: * * table.acarsmap { } * table.acarsmap thead { } * table.acarsmap tbody { } * table.acarsmap tbody tr.even { } * table.acarsmap tbody tr.odd { } */ ?> <script type="text/javascript"> <?php /* These are the settings for the Google map. You can see the Google API reference if you want to add more options. There's two options I've added: autozoom: This will automatically center in on/zoom so all your current flights are visible. If false, then the zoom and center you specify will be used instead refreshTime: Time, in seconds * 1000 to refresh the map. The default is 10000 (10 seconds) */ ?> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.HYBRID, refreshTime: 10000 }; </script> <div class="mapcenter" align="center"> <div id="acarsmap" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> </div> <?php Quote Link to comment Share on other sites More sharing options...
magicflyer Posted March 1, 2015 Report Share Posted March 1, 2015 Change autozoom to false. This is how it would look like - var acars_map_defaults = { autozoom: false, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.HYBRID, refreshTime: 10000 }; Quote Link to comment Share on other sites More sharing options...
Angello Posted March 1, 2015 Author Report Share Posted March 1, 2015 basically works,, but where is the plane? Quote Link to comment Share on other sites More sharing options...
magicflyer Posted March 1, 2015 Report Share Posted March 1, 2015 The autozoom was an alternate solution to your issue. You definitely have something else going on in your phpVMS but it seems to me that It may be nearly impossible to locate without comparing each file to the original. The plane is off screen, and that's because autozoom was set to false which means that google maps will not change the center coordinates so that your aircraft is visible. If you were to click, hold and drag the map around you'll find the plane. My best suggestion is to Zoom out by setting the zoom parameter in the code above to a lower value(Or greater, not sure...whichever lets you zoom out - experiment.) Another Alternative is the following code - var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Config::Get('MAP_CENTER_LAT'); ?>", "<?php echo Config::Get('MAP_CENTER_LNG'); ?>"), mapTypeId: google.maps.MapTypeId.ROADMAP, refreshTime: 10000 }; The code above would reset to the normal autozoom, but those black images would disappear. They would instead be replaced with a roadmap of the region. Quote Link to comment Share on other sites More sharing options...
Angello Posted March 2, 2015 Author Report Share Posted March 2, 2015 thank you very much for the help, Yours faithfully Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.