Opened 16 years ago

Last modified 16 years ago

#9210 closed

zoom does not effected, when use GoogleMap(zoom=x, ...) with zoom params.. — at Initial Version

Reported by: kitlycol@… Owned by: nobody
Component: GIS Version: 1.0
Severity: Keywords: google zoom gis
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

in the google map template js file( django/contrib/gis/templates/gis/google/js/google-map.js)

map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds))

should be changed to:

map.setCenter(bounds.getCenter(), {{ zoom }})

otherwise when use GoogleMap(zoom=x, ...) with zoom params, zoom does not effected actually .

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top