CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • 3.0 stable - events - google map size
Pages: [1]

Author Topic: 3.0 stable - events - google map size  (Read 4645 times)

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
3.0 stable - events - google map size
October 02, 2009, 06:53:21 am
Hi there. In 3.0 stable, where would I go change the default size and zoom level - and/or position, if possible, of the map displayed on the events page? I've tried adjusting the if statement in google.tpl, and can't find anything in the event page template file for this. The map causes the whole event document to overlap the right edge of my drupal center column, and eliminating the right column in the Drupal template isn't an option.

Thanks for your help!
Cheers
Chris Hutcheson

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 3.0 stable - events - google map size
October 02, 2009, 08:06:57 am

the

templates/CRM/Contact/Form/Task/Map/Google.tpl controls the size of the google map display

the table definition in  templates/CRM/Event/Page/EventInfo.tpl controls the location of the map

you might want to customize both of them for your needs

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
Re: 3.0 stable - events - google map size
October 03, 2009, 10:05:14 am
Would I adjust sizes here in google.tpl?

{if $showDirectly}
  {assign var=height value="350px"}
  {assign var=width  value="425px"}
{else}   
  {assign var=height value="600px"}
  {assign var=width  value="100%"}
{/if}

When I do this nothing happens. Sorry, but I don't know much about PHP...tried clearing cache and that didn't seem to work for me.

Sorry, forgot to mention that I'm using this in Drupal 6

Thanks
Chris
« Last Edit: October 05, 2009, 04:08:19 pm by cbh »

choster

  • I’m new here
  • *
  • Posts: 29
  • Karma: 2
    • Lattice Group
  • CiviCRM version: 4.3,4.4,4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.39
  • PHP version: 5.5.15
Re: 3.0 stable - events - google map size
October 13, 2009, 01:29:48 pm
Google.tpl is indeed the place. We set

{if $showDirectly}
  {assign var=height value="200px"}
  {assign var=width  value="300px"}

and it displays inline at the expected size upon reload.


To set the zoom, we commented out line 62 and replaced the setting with a manual one:

        //map.setZoom(map.getBoundsZoomLevel(bounds));
        map.setZoom(15);
 
We are on Drupal 6.14 and CiviCRM 3.0.1.

cbh

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71-log
  • PHP version: 5.5.3
Re: 3.0 stable - events - google map size
October 28, 2009, 08:08:25 am
Brilliant! Worked like a charm this time out. Thanks very much for this.

Cheers
Chris

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • 3.0 stable - events - google map size

This forum was archived on 2017-11-26.