google map: a few little things

  • staeren
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
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.

More
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 :
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
  • Junior Member
More
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
changing the zoomlevel is ok!

the adaption of the popup size frame is not much better

i would like to hide the scrollers and to display the map without the blue background, so it should be showed over all popup
Attachments:
Last edit: 14 years 6 months ago by staeren.

Please Log in or Create an account to join the conversation.

More
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 :
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
  • Junior Member
More
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