« zpět na výpis měsíce |

[Talk-cz] oznacovani dlazdic jako dirty

Vlákno 28.4.2015 - 22.5.2019, počet zpráv: 5


28.4.2015 06:11:24 (#1)
gravatar

Petr Holub

<hopet at ics.muni.cz>
290 4627
Ahoj, narazil jsem na takovy docela pekny Greasemonkey skriptik, treba se to bude nekomu hodit: https://gist.github.com/Adrianod/e6b522bf1715a49b68c2 na Alt klik to pak umi na OSM invalidovat dlazdice. Protoze jsme narazil na obcasne problemy se synchronizaci jednotlivych tile serveru OSM, trochu jsem ho pro sichr osklive hacknul, ze to jde po vsech serverech najednou, vizte nize. Petr // ==UserScript== // @name click n' dirt // @namespace https://gist.github.com/Adrianod/e6b522bf1715a49b68c2 // @description Alt-click to mark tiles as dirty on openstreetmap.org // @include http://www.openstreetmap.org/* // @include https://www.openstreetmap.org/* // @version 1 // @grant none // ==/UserScript== /* $.ajax({\ url: this.src.text().replace(/.\.tile\.openstreetmap\.org/, "a.tile.openstreetmap.org")+"/dirty",\ context: this\ });\ */ var code = '\ $("#map").on("click", ".leaflet-tile", function(e) {\ if (e.altKey) {\ $.ajax({\ url: this.src.replace(/.\.tile\.openstreetmap\.org/, "a.tile.openstreetmap.org")+"/dirty",\ context: this\ }).done(function() {\ $(this).fadeTo("fast", .8);\ });\ $.ajax({\ url: this.src.replace(/.\.tile\.openstreetmap\.org/, "b.tile.openstreetmap.org")+"/dirty",\ context: this\ }).done(function() {\ $(this).fadeTo("fast", .6);\ });\ $.ajax({\ url: this.src.replace(/.\.tile\.openstreetmap\.org/, "c.tile.openstreetmap.org")+"/dirty",\ context: this\ }).done(function() {\ $(this).fadeTo("fast", .2);\ });\ }\ });'; var script = document.createElement("script"); script.textContent = code; document.body.appendChild(script);

23.2.2018 02:25:46 (#2)
gravatar

Petr Vozdecký

<vop at seznam.cz>
395 472
Ahoj, toto mi dříve spolehlivě fungovalo, dnes jsem to zkusil reinkarnovat a bez úspěchu... jinými slovy - jak jednoduše označit dlaždici jako dirty? vop
---------- Původní e-mail ---------- Od: Petr Holub <hopet na ics.muni.cz> Komu: 'OpenStreetMap Czech Republic' <talk-cz na openstreetmap.org> Datum: 28. 4. 2015 18:13:14 Předmět: [Talk-cz] oznacovani dlazdic jako dirty "Ahoj, narazil jsem na takovy docela pekny Greasemonkey skriptik, treba se to bude nekomu hodit: https://gist.github.com/Adrianod/e6b522bf1715a49b68c2 na Alt klik to pak umi na OSM invalidovat dlazdice. Protoze jsme narazil na obcasne problemy se synchronizaci jednotlivych tile serveru OSM, trochu jsem ho pro sichr osklive hacknul, ze to jde po vsech serverech najednou, vizte nize. Petr // ==UserScript== // @name click n' dirt // @namespace https://gist.github.com/Adrianod/e6b522bf1715a49b68c2 // @description Alt-click to mark tiles as dirty on openstreetmap.org // @include http://www.openstreetmap.org/* // @include https://www.openstreetmap.org/* // @version 1 // @grant none // ==/UserScript== /* $.ajax({\ url: this.src.text().replace(/.\.tile\.openstreetmap\.org/, "a.tile. openstreetmap.org")+"/dirty",\ context: this\ });\ */ var code = '\ $("#map").on("click", ".leaflet-tile", function(e) {\ if (e.altKey) {\ $.ajax({\ url: this.src.replace(/.\.tile\.openstreetmap\.org/, "a.tile.openstreetmap. org")+"/dirty",\ context: this\ }).done(function() {\ $(this).fadeTo("fast", .8);\ });\ $.ajax({\ url: this.src.replace(/.\.tile\.openstreetmap\.org/, "b.tile.openstreetmap. org")+"/dirty",\ context: this\ }).done(function() {\ $(this).fadeTo("fast", .6);\ });\ $.ajax({\ url: this.src.replace(/.\.tile\.openstreetmap\.org/, "c.tile.openstreetmap. org")+"/dirty",\ context: this\ }).done(function() {\ $(this).fadeTo("fast", .2);\ });\ }\ });'; var script = document.createElement("script"); script.textContent = code; document.body.appendChild(script); _______________________________________________ Talk-cz mailing list Talk-cz na openstreetmap.org https://lists.openstreetmap.org/listinfo/talk-cz " ------------- další část --------------- HTML příloha byla odstraněna... URL: <https://lists.openstreetmap.org/pipermail/talk-cz/attachments/20180223/7cf0b36a/attachment.html>

23.2.2018 02:37:20 (#3)
gravatar

majka

<majka.zem+talk at gmail.com>
717 2573
Momentálně nejsnadněji přes JOSM. Je nutné mít zobrazenou vrstvu mapniku, a pak se dlaždice dá označit jako dirty z mapy (Get tile status - získej stav/ Force tile rendering - označit jako dirty). 2018-02-23 14:25 GMT+01:00 Petr Vozdecký <vop na seznam.cz>: zobrazit citaci
> Ahoj, > > toto mi dříve spolehlivě fungovalo, dnes jsem to zkusil reinkarnovat a bez > úspěchu... > > jinými slovy - jak jednoduše označit dlaždici jako dirty? > >
------------- další část --------------- HTML příloha byla odstraněna... URL: <https://lists.openstreetmap.org/pipermail/talk-cz/attachments/20180223/404abecb/attachment.html>

23.2.2018 02:48:43 (#4)
gravatar

Miroslav Suchy

<miroslav at suchy.cz>
590
Dne 23.2.2018 v 14:25 Petr Vozdecký napsal(a): zobrazit citaci
> Ahoj, > > toto mi dříve spolehlivě fungovalo, dnes jsem to zkusil reinkarnovat a bez úspěchu... > > jinými slovy - jak jednoduše označit dlaždici jako dirty?
Spise me to prijde, jako ze je ted dlouha fronta. Pred 2 dny jsem na re-render dlazdice cekal celou noc. Mirek

22.5.2019 06:20:19 (#5)
gravatar

Tom Ka

<tomas.kasparek at gmail.com>
1537 5619
Pouzij jiny zdroj dlazdic. Ja treba aktualizuju kazdou hodinu automaticky. Bye On Tue, Apr 28, 2015, 18:12 Petr Holub <hopet na ics.muni.cz> wrote: zobrazit citaci
> Ahoj, > > narazil jsem na takovy docela pekny Greasemonkey skriptik, treba > se to bude nekomu hodit: > https://gist.github.com/Adrianod/e6b522bf1715a49b68c2 > na Alt klik to pak umi na OSM invalidovat dlazdice. > > Protoze jsme narazil na obcasne problemy se synchronizaci jednotlivych > tile serveru OSM, trochu jsem ho pro sichr osklive hacknul, ze to > jde po vsech serverech najednou, vizte nize. > > Petr > > > > // ==UserScript== > > // @name click n' dirt > // @namespace https://gist.github.com/Adrianod/e6b522bf1715a49b68c2 > // @description Alt-click to mark tiles as dirty on openstreetmap.org > // @include http://www.openstreetmap.org/* > // @include https://www.openstreetmap.org/* > // @version 1 > // @grant none > // ==/UserScript== > > /* > $.ajax({\ > url: this.src.text().replace(/.\.tile\.openstreetmap\.org/, " > a.tile.openstreetmap.org")+"/dirty",\ > context: this\ > });\ > */ > > var code = '\ > $("#map").on("click", ".leaflet-tile", function(e) {\ > if (e.altKey) {\ > $.ajax({\ > url: this.src.replace(/.\.tile\.openstreetmap\.org/, " > a.tile.openstreetmap.org")+"/dirty",\ > context: this\ > }).done(function() {\ > $(this).fadeTo("fast", .8);\ > });\ > $.ajax({\ > url: this.src.replace(/.\.tile\.openstreetmap\.org/, " > b.tile.openstreetmap.org")+"/dirty",\ > context: this\ > }).done(function() {\ > $(this).fadeTo("fast", .6);\ > });\ > $.ajax({\ > url: this.src.replace(/.\.tile\.openstreetmap\.org/, " > c.tile.openstreetmap.org")+"/dirty",\ > context: this\ > }).done(function() {\ > $(this).fadeTo("fast", .2);\ > });\ > }\ > });'; > > var script = document.createElement("script"); > script.textContent = code; > document.body.appendChild(script); > > > > _______________________________________________ > Talk-cz mailing list > Talk-cz na openstreetmap.org > https://lists.openstreetmap.org/listinfo/talk-cz >
------------- další část --------------- HTML příloha byla odstraněna... URL: <http://lists.openstreetmap.org/pipermail/talk-cz/attachments/20190522/ffabaa86/attachment-0001.html>

« zpět na výpis měsíce