Jump to content

Acars Map


Vangelis

Recommended Posts

  • Members

Hello guys

I am trying to make some phpvms templates in order to share them with others

1 of the problems that i faced is the google map size

i tried to read the google map api but no succes

so i would apreciate any help

my problem is that the google map is out of the center of the page to the right

Example

so if anybody can explain to me how can i resize the map it would be nice

Thanks in advance

Link to comment
Share on other sites

  • Moderators

Hi in my local config i have the following,

# Google Map Options

Config::Set('MAP_WIDTH', '700px');

Config::Set('MAP_HEIGHT', '600px');

In my flown_routes_map.tpl i have defined a size,

<div class="mapcenter" align="center">

<div id="routemap" style="width: 600px; height: 600px;"></div>

Maybe that will help you.

Or i have just found this bit you can remove the

<?php echo Config::Get('MAP_WIDTH');?> and <?php echo Config::Get('MAP_HEIGHT')?> to define your own.

<div class="mapcenter" align="center">
<div id="routemap" style="width:<?php echo  Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div>
</div>

Link to comment
Share on other sites

Ooh! My turn!

Sorry to bombard you all with questions and thread takeovers... :rolleyes:

After a considerable amount of time of yelling "NO" and "ALMOST" at Google Maps, I've found the center point for my map. However, no matter how I try to alter the zoom level, I still have to zoom out two clicks to get it to where I want it. You can see my map here, and the code in local.config.php is:

Config::Set('MAP_CENTER_LAT', '18.062312');
Config::Set('MAP_CENTER_LNG', '-114.464844');
Config::Set('MAP_ZOOM_LEVEL', 10);

I don't remember the default zoom level, but I've tried changing it as is and putting ' ' around it, but it won't nudge. I'm looking to see pieces of Asia, Australia, USA, and the important parts of Europe (pertaining to my VA).

[EDIT] My apologies, I just realized this isn't in the Support area.

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