Members Vangelis Posted May 16, 2010 Members Report Posted May 16, 2010 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 Quote
Moderators mark1million Posted May 16, 2010 Moderators Report Posted May 16, 2010 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> Quote
Members Vangelis Posted May 17, 2010 Author Members Report Posted May 17, 2010 it worked many thanks Quote
Michael Posted May 18, 2010 Report Posted May 18, 2010 Ooh! My turn! Sorry to bombard you all with questions and thread takeovers... 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. Quote
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.