Tweak the map UI

This commit is contained in:
Bing Xie
2016-04-27 14:17:29 +10:00
parent daa5b00a2a
commit 824a29624f
4 changed files with 6 additions and 5 deletions

View File

@@ -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", ->

View File

@@ -6,7 +6,7 @@ Darkswarm.factory "MapConfiguration", ->
longitude: 144.7851531
zoom: 12
additional_options:
#mapTypeId: 'satellite'
# mapTypeId: 'satellite'
mapTypeId: 'OSM'
mapTypeControl: false
streetViewControl: false