Closed (fixed)
Project:
Geobrowser
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Nov 2007 at 19:58 UTC
Updated:
29 Nov 2007 at 01:01 UTC
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
Comment #1
phayes commentedThanks 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
Comment #2
phayes commentedComment #3
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.