We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b0c589de authored by Brion Vibber's avatar Brion Vibber

Ticket #2330: fix Google Maps provider for Mapstraction plugin

parent 83b976f7
...@@ -125,8 +125,8 @@ class MapstractionPlugin extends Plugin ...@@ -125,8 +125,8 @@ class MapstractionPlugin extends Plugin
$action->script('http://tile.cloudmade.com/wml/0.2/web-maps-lite.js'); $action->script('http://tile.cloudmade.com/wml/0.2/web-maps-lite.js');
break; break;
case 'google': case 'google':
$action->script(sprintf('http://maps.google.com/maps?file=api&v=2&sensor=false&key=%s', $action->script(sprintf('http://maps.google.com/maps?file=api&v=2&sensor=false&key=%s',
$this->apikey)); urlencode($this->apikey)));
break; break;
case 'microsoft': case 'microsoft':
$action->script('http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6'); $action->script('http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6');
...@@ -137,7 +137,7 @@ class MapstractionPlugin extends Plugin ...@@ -137,7 +137,7 @@ class MapstractionPlugin extends Plugin
break; break;
case 'yahoo': case 'yahoo':
$action->script(sprintf('http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=%s', $action->script(sprintf('http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=%s',
$this->apikey)); urlencode($this->apikey)));
break; break;
case 'geocommons': // don't support this yet case 'geocommons': // don't support this yet
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment