kopia lustrzana https://github.com/openstreetmap-polska/aed-mapa
Porównaj commity
13 Commity
00ae1d9881
...
fb1fb23946
Autor | SHA1 | Data |
---|---|---|
tomasz t | fb1fb23946 | |
tomasz t | b5d6fe18d4 | |
tomasz t | 36ff7cfda6 | |
tomasz t | ca98c2977c | |
ANCMN | 8196b2421a | |
tomasz t | 40a4f266bd | |
ttomasz | b02e6fd4dd | |
ttomasz | 04951a59cd | |
BNDR | 2b6e442830 | |
BNDR | 2e5cc08851 | |
tomasz t | eea4a5e468 | |
ttomasz | e51702e29b | |
BNDR | b19e5966b1 |
|
@ -42,7 +42,7 @@ jobs:
|
|||
--exclude 'requirements.txt' --exclude 'LICENSE' --exclude 'README.md' --exclude '*.ods' --exclude '*.csv' \
|
||||
--quiet /home/${{ secrets.SSH_USER }}/aed-mapa/ /home/${{ secrets.SSH_USER }}/temp_deploy_prod/
|
||||
sed -i "s/<< oauth_consumer_key >>/$OAUTH_CONSUMER_KEY/;s/<< oauth_secret >>/$OAUTH_SECRET/;s|<< url >>|$OSM_API_URL|" /home/${{ secrets.SSH_USER }}/temp_deploy_prod/src/osm-integration.js
|
||||
sed -i "s|https://aed.openstreetmap.org.pl/dev/|https://aed.openstreetmap.org.pl/|g" /home/${{ secrets.SSH_USER }}/temp_deploy_dev/src/map_style/style.json
|
||||
sed -i "s|https://aed.openstreetmap.org.pl/dev/|https://aed.openstreetmap.org.pl/|g" /home/${{ secrets.SSH_USER }}/temp_deploy_prod/src/map_style/style.json
|
||||
rsync --update --recursive --delete \
|
||||
--exclude '*.py' --exclude '*.geojson' --exclude '.git*' --exclude 'aed_poland_metadata.json' \
|
||||
--exclude 'requirements.txt' --exclude 'LICENSE' --exclude 'README.md' --exclude '*.ods' --exclude '*.csv' \
|
||||
|
|
15
README.md
15
README.md
|
@ -67,10 +67,25 @@ cp /home/aeduser/data_dir/aed_poland.csv /var/www/html/aed_poland.csv
|
|||
|
||||
#### Editing style
|
||||
|
||||
You can use [Maputnik](https://maputnik.github.io/) editor to prepare new style for the map.
|
||||
|
||||
Steps:
|
||||
1. Open https://aed.openstreetmap.org.pl/maputnik/?layer=1311944204%7E0#6/52/20 (it's a copy of maputnik editor with newer version than what is available on the official site).
|
||||
2. If the AED map style has not been loaded click _open_ and select it.
|
||||
3. Once finished click _export_ and create PR or an issue with your style attached.
|
||||
|
||||
#### Creating sprites with icons
|
||||
|
||||
If you want to add new icons to the sprite sheet please place the SVG files in ./src/marker_icons/ folder.
|
||||
|
||||
SVG should be scaled to 50x50px size.
|
||||
|
||||
```bash
|
||||
# install requirements (assumes NVM has been installed)
|
||||
nvm use 8
|
||||
npm install -g @mapbox/spritezero-cli
|
||||
# create sprite for regular screens
|
||||
spritezero --ratio 1 ./src/map_style/sprite ./src/marker_icons/
|
||||
# create sprite for high-dpi screens
|
||||
spritezero --ratio 2 ./src/map_style/sprite@2x ./src/marker_icons/
|
||||
```
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"marker_customers": {
|
||||
"height": 100,
|
||||
"pixelRatio": 2,
|
||||
"width": 100,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"marker_default": {
|
||||
"height": 100,
|
||||
"pixelRatio": 2,
|
||||
"width": 100,
|
||||
"x": 100,
|
||||
"y": 0
|
||||
},
|
||||
"marker_no": {
|
||||
"height": 100,
|
||||
"pixelRatio": 2,
|
||||
"width": 99,
|
||||
"x": 0,
|
||||
"y": 100
|
||||
},
|
||||
"marker_private": {
|
||||
"height": 100,
|
||||
"pixelRatio": 2,
|
||||
"width": 100,
|
||||
"x": 99,
|
||||
"y": 100
|
||||
}
|
||||
}
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 8.1 KiB |
|
@ -44,7 +44,7 @@
|
|||
"layout": {
|
||||
"icon-image": "marker_default",
|
||||
"icon-size": 0.5,
|
||||
"icon-overlap": "always"
|
||||
"icon-allow-overlap": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue