| | 1 | [[TranslatedPages(revision=12)]] |
| | 2 | |
| | 3 | = Αρχεία XML προσαρμοσμένης διαμόρφωσης για JOSM = |
| | 4 | == Δείγματα (Δείτε σχόλια σε XML) == |
| | 5 | * Κατηγοριοποιημένα παραδείγματα [attachment:scripts.zip:ticket:4421 scripts.zip] |
| | 6 | * Εγκατάσταση προεπιλογών και στυλ: [attachment:seamap.xml:ticket:4421 seamap.xml], |
| | 7 | [attachment:seamap_ForOfflineInstallation.zip:ticket:4421 seamap_ForOfflineInstallation.zip] |
| | 8 | * Επίπεδο εικόνων, πρόσθετα και συντονισμός επιλογών (μόνο Ρωσική τοπική προσαρμογή προς το παρόν): [attachment:forestMapping.xml:ticket:4421 forestMapping.xml] |
| | 9 | |
| | 10 | === Προτιμήσεις εντολών προσθήκης ή αντικατάστασης === |
| | 11 | |
| | 12 | Ο παρακάτω κώδικας προσθέτει μία ακόμη εικόνα στη λίστα: |
| | 13 | {{{#!xml |
| | 14 | <config> |
| | 15 | <preferences operation="append"> |
| | 16 | <!-- Any preferences.xml fragment can be used here --> |
| | 17 | <tag key="download.autorun" value="true"/> <!-- example of simple preference modification - download.autorun := true --> |
| | 18 | <maps key="imagery.entries"> |
| | 19 | <map> |
| | 20 | <tag key="name" value="ScanEx IRS"/> |
| | 21 | <tag key="type" value="scanex"/> |
| | 22 | <tag key="url" value="IRS"/> |
| | 23 | <tag key="attribution-text" value="IRS"/> |
| | 24 | <tag key="attribution-url" value="http://irs.gis-lab.info/"/> |
| | 25 | </map> |
| | 26 | </maps> |
| | 27 | </preferences> |
| | 28 | </config> |
| | 29 | }}} |
| | 30 | |
| | 31 | Εάν το '''<preferences operation="replace">''' θα χρησιμοποιηθεί αντ' αυτού, όλα τα άλλα στοιχεία <χάρτη> θα __διαγραφούν__ από το '''imagery.entries''' ! |
| | 32 | |
| | 33 | Άλλο παράδειγμα: |
| | 34 | {{{#!xml |
| | 35 | <config> |
| | 36 | <preferences operation="replace"> <!-- old content of draw.anglesnap.angles will be deleted --> |
| | 37 | <list key="draw.anglesnap.angles"> |
| | 38 | <entry value="30"/> |
| | 39 | <entry value="45"/> |
| | 40 | <entry value="60"/> |
| | 41 | </list> |
| | 42 | </preferences> |
| | 43 | </config> |
| | 44 | }}} |
| | 45 | |
| | 46 | === Λειτουργίες αρχείων - λήψη, διαγραφή, αποσυμπίεση === |
| | 47 | {{{#!xml |
| | 48 | <config> |
| | 49 | <delete path="plugins/tmp"/> |
| | 50 | <!-- delete recursively plugins/tmp from preferences directory --> |
| | 51 | <!-- base = "prefs" - delete from preferences folder base = "plugins" - delete from plugins folder base = "cache" - delete from cache folder --> |
| | 52 | |
| | 53 | <delete path="splug" base="plugins"/> |
| | 54 | <!-- delete recursively splug folder from preferences directory --> |
| | 55 | |
| | 56 | <!--<delete path="." base="cache"/> delete cache folder --> |
| | 57 | |
| | 58 | <download url="http://josm.openstreetmap.de/osmsvn/applications/editors/josm/dist/buildings_tools.jar" path="plugins/tmp/bt.jar" mkdir="true" unzip="true"/> |
| | 59 | <!-- download file from url and place as "path" if mkdir="true", then all necessary directories will be created if unzip="true", then zip/jar file will be exanded and then deleted --> |
| | 60 | |
| | 61 | <download url="https://wiki.openstreetmap.org/w/images/7/79/Public-images-osm_logo.svg" path="1/logo.svg" mkdir="true" base="cache"/> |
| | 62 | |
| | 63 | <download url="file://localhost/e:/a.zip" path="qqq/a.zip" unzip="true" mkdir="true"/> |
| | 64 | <!-- copy from local folder and unzip --> |
| | 65 | </config> |
| | 66 | }}} |
| | 67 | |
| | 68 | === Λειτουργίες πρόσθετων: εγκατάσταση, απενεργοποίηση, διαγραφή === |
| | 69 | {{{#!xml |
| | 70 | <config> |
| | 71 | <!-- install plugins and remove them without deleting plastic_laf.jar --> |
| | 72 | <plugin install="buildings_tools;wayselector" remove="plastic_laf"/> |
| | 73 | <plugin delete="proj4j"/> <!-- disable plugin and delete jar --> |
| | 74 | </config> |
| | 75 | }}} |
| | 76 | |
| | 77 | == Δείτε επίσης == |
| | 78 | * Συζήτηση για την ανάπτυξη: #4421, #18830 |
| | 79 | |