- Posts: 38
- Thank you received: 0
google map: a few little things
- staeren
- Topic Author
- Offline
- Junior Member
-
Less
More
14 years 6 months ago #4858
by staeren
google map: a few little things was created by staeren
i want to show the google map with an other zoomlevel (13). also i want to change the width and heigth of the popup frame. can you tell me which php file and maybe the line number i have to change?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
14 years 6 months ago #4865
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: google map: a few little things
Hi
You can go to components/com_eventbooking/views/map/tmpl folder, open the file default.php, look at line 20 :
Change 8 to 13 . In the next version, I will make the zoom level configurable .
To change size of the frame, please look at the file components/com_eventbooking/views/event/tmpl, open the file default.php, look at line 121 :
Please note the code gb_page_center[500,450], here you can change the width and height of the frame .
Hope this help .
Regards ,
Tuan
You can go to components/com_eventbooking/views/map/tmpl folder, open the file default.php, look at line 20 :
Code:
map.setCenter(point, 8);
Change 8 to 13 . In the next version, I will make the zoom level configurable .
To change size of the frame, please look at the file components/com_eventbooking/views/event/tmpl, open the file default.php, look at line 121 :
Code:
<a href="<?php echo JRoute::_('index2.php?option=com_eventbooking&task=view_map&location_id='.$item->location_id); ?>&tmpl=component" rel="gb_page_center[500,450]" title="<?php echo $this->location->name ; ?>" class="location_link"><?php echo $this->location->name ; ?></a>
Please note the code gb_page_center[500,450], here you can change the width and height of the frame .
Hope this help .
Regards ,
Tuan
Please Log in or Create an account to join the conversation.
- staeren
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 0
14 years 6 months ago - 14 years 6 months ago #4880
by staeren
Replied by staeren on topic Re: google map: a few little things
Attachments:
Last edit: 14 years 6 months ago by staeren.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
14 years 6 months ago #4881
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: google map: a few little things
Hi
I think you also want to changed the size of the map ? If so, please open the file components/com_eventbooking/views/map/tmpl/default.php, look at line 18 :
Please note the part google.maps.Size(430,350), there you can change the size of the map .
Thanks,
Tuan
I think you also want to changed the size of the map ? If so, please open the file components/com_eventbooking/views/map/tmpl/default.php, look at line 18 :
Code:
var map = new GMap2(document.getElementById("location_map"),{size: new google.maps.Size(430,350)});
Please note the part google.maps.Size(430,350), there you can change the size of the map .
Thanks,
Tuan
Please Log in or Create an account to join the conversation.
- staeren
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 0
14 years 6 months ago #4884
by staeren
Replied by staeren on topic Re: google map: a few little things
ok, that works, but there is something that makes that the scrollers are not disappearing... how to hide them?
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.