Skip to content

Commit

Permalink
Merge 72f4d6f into 573c6ca
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmikardo committed Jun 13, 2021
2 parents 573c6ca + 72f4d6f commit c57b8f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions mapwidgets/settings.py
Expand Up @@ -14,6 +14,7 @@
("zoom", 6),
("GooglePlaceAutocompleteOptions", {}),
("markerFitZoom", 15),
("streetViewControl", True),
),

"GoogleStaticMapWidget": (
Expand Down
6 changes: 4 additions & 2 deletions mapwidgets/static/mapwidgets/js/mw_google_point_field.js
Expand Up @@ -18,7 +18,8 @@
zoomControlOptions: {
position: google.maps.ControlPosition.RIGHT
},
zoom: this.zoom
zoom: this.zoom,
streetViewControl: this.streetViewControl
});

$(this.mapElement).data('google_map', this.map);
Expand All @@ -38,7 +39,8 @@
zoomControlOptions: {
position: google.maps.ControlPosition.RIGHT
},
zoom: this.zoom
zoom: this.zoom,
streetViewControl: this.streetViewControl
});

$(this.mapElement).data('google_map', this.map);
Expand Down
Expand Up @@ -78,6 +78,7 @@
zoom: mapOptions.zoom,
markerFitZoom: mapOptions.markerFitZoom,
GooglePlaceAutocompleteOptions: mapOptions.GooglePlaceAutocompleteOptions,
streetViewControl: mapOptions.streetViewControl,
markerCreateTriggerNameSpace: "google_point_map_widget:marker_create",
markerChangeTriggerNameSpace: "google_point_map_widget:marker_change",
markerDeleteTriggerNameSpace: "google_point_map_widget:marker_delete",
Expand Down

0 comments on commit c57b8f4

Please sign in to comment.