Map ignores the setting for the initial zoom level.

Problem is line 52 of browser.php:

$output .= "map.setCenter(new GLatLng(begin_lat,begin_lon), 7);";

Should be:

$output .= "map.setCenter(new GLatLng(begin_lat,begin_lon), begin_zoom);";

However if I try that the map then has zoom level of 1 instead of whatever I set on the Geobrowser settings page. I don't know why the begin_zoom value's not being passed when the begin_lat and begin_lon values are working fine. The value is correct in the database, and is being called correctly around line 380.

Comments

phayes’s picture

Assigned: Unassigned » phayes

Thanks for pointing this out.

The problem was in the quotes - for example:

var begin_zoom = "14"; makes 14 a string which google maps API does not like

it should be

begin_zoom = 14;

I will fix it

phayes’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.