Active
Project:
Static Map
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2012 at 16:19 UTC
Updated:
10 Aug 2012 at 16:19 UTC
Great module!
I found that I couldn't set the size of the static map from OpenStreetMap. The parameter was not being passed on, so I added the line "'size' => $settings['preset']['mapsize']," to the "build_Params" function in mapProviderOpenStreetMap.php. The function now looks like:
public function build_params(&$items, &$settings) {
$parameters = array(
'show' => 1,
'layer' => $settings['preset']['maptype'],
'size' => $settings['preset']['mapsize'],
'z' => 12,
);
and it's good.