Changeset 188

Show
Ignore:
Timestamp:
03/09/06 17:23:48 (3 years ago)
Author:
ogawa
Message:

Change to use Google Maps API v2 with the localization parameter (e.g., hl=ja).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Mapper/trunk/Mapper.pl

    r185 r188  
    116116 
    117117my $preamble_tmpl = <<'EOT'; 
    118 <script type="text/javascript" src="http://maps.google.com/maps?file=api&v=1.28&key=<TMPL_VAR NAME="google_maps_key">" charset="utf-8"></script> 
     118<script type="text/javascript" src="http://maps.google.com/maps?<TMPL_IF NAME="language">hl=<TMPL_VAR NAME="language">&</TMPL_IF>file=api&v=2&key=<TMPL_VAR NAME="google_maps_key">" charset="utf-8"></script> 
    119119<script type="text/javascript"> 
    120120//<![CDATA[ 
     
    157157    my $this = shift; 
    158158    my $tmpl = HTML::Template->new(scalarref => \$preamble_tmpl); 
    159     $tmpl->param(google_maps_key => $this->{google_maps_key}); 
     159    $tmpl->param( 
     160                 google_maps_key => $this->{google_maps_key}, 
     161                 language => $this->{language} || '' 
     162                 ); 
    160163    $tmpl->output; 
    161164}