Skip to content

Commit

Permalink
Revert "Change default_lon/default_lat in MapWidgets to work around G…
Browse files Browse the repository at this point in the history
…oogle Maps issues explained in #159"

We no longer need it as we have patched the openlayers lib.

This reverts commit 131d4f7.
  • Loading branch information
gregmuellegger committed Dec 1, 2015
1 parent 918352e commit a3f46f3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions floppyforms/static/floppyforms/js/MapWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,8 @@ function MapWidget(options) {
this.options = {
base_layer: new OpenLayers.Layer.WMS('OpenLayers WMS', 'http://vmap0.tiles.osgeo.org/wms/vmap0', {layers: 'basic'}),
color: 'ee9900',
// Choosing 0.1/0.1 here instead of 0/0 because otherwise the
// Google Maps widgets won't load the maps tiles on load
// automatically. We don't have any idea why it is that way,
// but we'll add it anyways as a fix for #159. See the ticket
// for details: https://github.com/gregmuellegger/django-floppyforms/issues/159
default_lon: 0.1,
default_lat: 0.1,
default_lat: 0,
default_lon: 0,
default_zoom: 4,
is_collection: false,
is_linestring: false,
Expand Down

0 comments on commit a3f46f3

Please sign in to comment.