mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Tweak the map UI
This commit is contained in:
@@ -8,6 +8,7 @@ Darkswarm.directive 'mapSearch', ($timeout)->
|
||||
$timeout =>
|
||||
map = ctrl.getMap()
|
||||
|
||||
# Use OSM tiles server
|
||||
map.mapTypes.set 'OSM', new (google.maps.ImageMapType)(
|
||||
getTileUrl: (coord, zoom) ->
|
||||
# "Wrap" x (logitude) at 180th meridian properly
|
||||
@@ -36,7 +37,7 @@ Darkswarm.directive 'mapSearch', ($timeout)->
|
||||
#map.setCenter place.geometry.location
|
||||
map.fitBounds place.geometry.viewport
|
||||
#map.fitBounds bounds
|
||||
|
||||
|
||||
# Bias the SearchBox results towards places that are within the bounds of the
|
||||
# current map's viewport.
|
||||
google.maps.event.addListener map, "bounds_changed", ->
|
||||
|
||||
@@ -6,7 +6,7 @@ Darkswarm.factory "MapConfiguration", ->
|
||||
longitude: 144.7851531
|
||||
zoom: 12
|
||||
additional_options:
|
||||
#mapTypeId: 'satellite'
|
||||
# mapTypeId: 'satellite'
|
||||
mapTypeId: 'OSM'
|
||||
mapTypeControl: false
|
||||
streetViewControl: false
|
||||
|
||||
Reference in New Issue
Block a user