Skip to content

Commit

Permalink
use tiles from osm & allow using database config for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit committed Feb 22, 2015
1 parent 9d4909e commit 23e38f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ angular.module("DialogMapApp").controller "MapController", [
enable: ['moveend','draw:created','click','popupopen']
logic: 'emit'
tiles:
url: '/tiles/{z}/{x}/{y}.png'
url: 'http://tile.openstreetmap.org/{z}/{x}/{y}.png'
# contains all geofeatures
geojson:
data: { "type": "FeatureCollection", "features": [] }
Expand Down
8 changes: 3 additions & 5 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ default: &default
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
pool: 5
username: dialog_map
password: dialog_map
username: postgres
password: <%= ENV['POSTGIS_ENV_POSTGRES_PASSWORD'] %>
host: <%= ENV['POSTGIS_PORT_5432_TCP_ADDR'] %>

development:
<<: *default
Expand Down Expand Up @@ -82,7 +83,4 @@ test:
#
production:
<<: *default
host: <%= ENV['POSTGIS_PORT_5432_TCP_ADDR'] %>
database: dialog_map_production
username: postgres
password: <%= ENV['POSTGIS_ENV_POSTGRES_PASSWORD'] %>

0 comments on commit 23e38f1

Please sign in to comment.