Skip to content

Commit 0da0897

Browse files
committed
Merge pull request #12 from iromli/defaults
Add defaults (icons) and config
2 parents bf84216 + 8660340 commit 0da0897

6 files changed

Lines changed: 14 additions & 15 deletions

File tree

users/config.py.prod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import os
44

55
# PROJECT_NAME: Project Name.
66
# It would override page title, email confirmation to user, so on.
7-
PROJECT_NAME = 'InaSAFE'
7+
PROJECT_NAME = 'Python Indonesia'
88

99
# PUBLIC_URL: Public URL that is used for publishing this apps.
1010
# It will be used for detail of the email confirmation, and other things if
1111
# it's needed
12-
PUBLIC_URL = 'http://users.inasafe.org'
12+
PUBLIC_URL = 'http://members.python.or.id'
1313

1414
# PROJECT_FAVICON_FILE: Path to project favicon file
15-
PROJECT_FAVICON_FILE = '/users/static/img/user-icon.png'
15+
PROJECT_FAVICON_FILE = '/users/static/img/favicon.png'
1616

1717
# PATH TO SQLITE DB
1818
SQLITE_DB_PATH = os.path.abspath(
@@ -39,6 +39,6 @@ MAIL_ADMIN = ('InaSAFE User Map Administrator', MAIL_CONFIG['MAIL_USERNAME'])
3939

4040
# USER ICONS: All icon paths that are used.
4141
USER_ICONS = dict(
42-
user='/static/img/user-icon.png',
43-
shadow='/static/img/shadow-icon.png'
42+
user='/static/img/marker.png',
43+
shadow='/static/img/marker-shadow.png'
4444
)

users/config.py.test

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ import os
44

55
# PROJECT_NAME: Project Name.
66
# It would override page title, email confirmation to user, so on.
7-
PROJECT_NAME = 'InaSAFE'
7+
PROJECT_NAME = 'Python Indonesia'
88

99
# PUBLIC_URL: Public URL that is used for publishing this apps.
1010
# It will be used for detail of the email confirmation, and other things if
1111
# it's needed
12-
PUBLIC_URL = 'http://users.inasafe.org'
13-
12+
PUBLIC_URL = 'http://members.python.or.id'
1413

1514
# PROJECT_FAVICON_FILE: Path to project favicon file
16-
PROJECT_FAVICON_FILE = '/users/static/img/user-icon.png'
15+
PROJECT_FAVICON_FILE = '/users/static/img/favicon.png'
1716

1817
# PATH TO SQLITE DB
1918
SQLITE_DB_PATH = os.path.abspath(
@@ -41,6 +40,6 @@ MAIL_ADMIN = ('InaSAFE User Map Administrator', MAIL_CONFIG['MAIL_USERNAME'])
4140

4241
# USER ICONS: All icon paths that are used.
4342
USER_ICONS = dict(
44-
user='/static/img/user-icon.png',
45-
shadow='/static/img/shadow-icon.png'
43+
user='/static/img/marker.png',
44+
shadow='/static/img/marker-shadow.png'
4645
)

users/static/img/favicon.png

585 Bytes
Loading

users/static/img/marker-shadow.png

797 Bytes
Loading

users/static/img/marker.png

1.07 KB
Loading

users/static/js/user-map-component.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ function createIconMarkerBase(shadow_icon_path) {
3232
IconMarkerBase = L.Icon.extend({
3333
options: {
3434
shadowUrl: shadow_icon_path,
35-
iconSize: [19, 32],
36-
shadowSize: [42, 35],
37-
iconAnchor: [12, 32],
35+
iconSize: [20, 20],
36+
shadowSize: [28, 28],
37+
iconAnchor: [16, 24],
3838
shadowAnchor: [12, 32],
39-
popupAnchor: [-2, -32]
39+
popupAnchor: [-5, -28]
4040
}
4141
});
4242
return IconMarkerBase;

0 commit comments

Comments
 (0)