Changeset 172


Ignore:
Timestamp:
12/01/2006 09:37:21 AM (5 years ago)
Author:
cirrus
Message:

Added: Google map api selection in the config file.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/config-sample/config.php

    r159 r172  
    8989                        'default' => 'satellite' 
    9090                        ), 
     91                'api' => '2.66', 
    9192                'keys' => array( // Domains must be as in $_SERVER['SERVER_NAME'] variable 
    9293                        'server.example.org/path' => 'example_key' 
  • trunk/globals/functions.php

    r169 r172  
    345345        if ($gmap_key == '') return FALSE; 
    346346 
    347         $main->html->head->add_script("text/javascript", "http://".$vars['gmap']['server']."/maps?file=api&v=2&key=".$gmap_key); 
     347        $main->html->head->add_script("text/javascript", "http://".$vars['gmap']['server']."/maps?file=api&v=".$vars['gmap']['api']."&key=".$gmap_key); 
    348348        $main->html->head->add_script("text/javascript", $javascript); 
    349349        $main->html->head->add_extra( 
Note: See TracChangeset for help on using the changeset viewer.