blob: 44d0e77e7c52e112a8887c1d83b9fb1f436542ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# FixMyStreet:Map::GoogleOL
# Google maps on FixMyStreet, using OpenLayers.
#
# Copyright (c) 2013 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org; WWW: http://www.mysociety.org/
package FixMyStreet::Map::GoogleOL;
use parent 'FixMyStreet::Map::OSM';
use strict;
sub map_type { '' }
sub map_template { 'google-ol' }
sub map_javascript {
my $google_maps_url = "https://maps.googleapis.com/maps/api/js?v=3";
my $key = FixMyStreet->config('GOOGLE_MAPS_API_KEY');
$google_maps_url .= "&key=$key" if $key;
[
$google_maps_url,
'/vendor/OpenLayers/OpenLayers.google.js',
'/js/map-OpenLayers.js',
'/js/map-google-ol.js',
]
}
1;
|