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

View File

@@ -22,6 +22,7 @@
background: rgba(255,255,255,0.85)
width: 50%
margin-top: 1.2rem
margin-left: 1rem
@media all and (max-width: 768px)
width: 80%
&:active, &:focus, &.active
@@ -38,4 +39,4 @@
margin: 0
padding: 6px
z-index: 2
background: WHITE
background: #fff

View File

@@ -12,5 +12,4 @@
.map-footer
%a{:href => "http://www.openstreetmap.org/copyright"} OpenStreetMap
contributors
%a{:href => "http://www.openstreetmap.org/copyright"} OpenStreetMap contributors