Re: [OSM-dev] Change Tile server on openstreetmap.org

2019-05-02 Thread Moritz Fromm
It's not about setting up a OSM CDN - I would like to but am not able to
do so.

I would just like to change of the tiles server (in my browser) the
openstreetmap website is using.

Mit freundlichen Grüßen / Kind regards Moritz Fromm

I do GPG with the key 0x9767CFDD10C4FC71 
To ensure the securityof the communication, please reply encrypted! 
Ich nutze GPG mit dem Schlüssel 0x9767CFDD10C4FC71!
Um die Sicherheit der ausgetauschten Inhalte zu gewährleisten, antworten sie 
bitte verschlüsselt!

https://emailselfdefense.org/

On 23.04.19 10:36, Simon Poole wrote:
> You might want to read
> https://wiki.openstreetmap.org/wiki/Servers/Tile_CDN first.
>
> Simon
>
> Am 22.04.2019 um 22:31 schrieb Moritz Fromm:
>> Hi,
>>
>> I am running an cache proxy for the OSM Tiles server. It's used in
>> another Project for an Leaflet map and it is considerably faster and
>> more responsive than the default {a-c}.tile.openstreetmap.org,
>> absolutely no offense there it's free and just fine overall I guess. I
>> would really like to use my cache proxy, and if the Server can handle it
>> offer it to others, on openstreetmap.org. This would both
>> considerablyincrease a users experience while also reducing the load on
>> the original tiles server. My plan is to do so using an browser
>> extension. I have not found uncompressed javascript code for
>> openstreetmap.org from which to extract the functions to call in order
>> to change the tiles server, What I have found from decompressing the
>> assets-.js is: 
>>
>>> L.OSM.TileLayer = L.TileLayer.extend({
>>>     options: {
>>>     url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png;,
>>>     attribution: '\xa9 >> href="https://www.openstreetmap.org/copyright;
>>> target="_blank">OpenStreetMap contributors'
>>>     },
>>>     initialize: function(t) {
>>>     t = L.Util.setOptions(this, t),
>>> L.TileLayer.prototype.initialize.call(this, t.url)
>>>     }
>>>     })
>> I believe this to be where the map is initialized, but executing the
>> same pice of code with my domain is not working. I am wondering:
>>
>>  1. was is the least stupid way in order to change the tiles after the
>> Page has been loaded?
>>  2. Is there any better way than writing a plugin for that job?
>>
>>
>> Greetings,
>> Moritz
>>
>>
>>
>> ___
>> dev mailing list
>> dev@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/dev
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev



signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] Change Tile server on openstreetmap.org

2019-04-23 Thread Simon Poole
You might want to read
https://wiki.openstreetmap.org/wiki/Servers/Tile_CDN first.

Simon

Am 22.04.2019 um 22:31 schrieb Moritz Fromm:
> Hi,
>
> I am running an cache proxy for the OSM Tiles server. It's used in
> another Project for an Leaflet map and it is considerably faster and
> more responsive than the default {a-c}.tile.openstreetmap.org,
> absolutely no offense there it's free and just fine overall I guess. I
> would really like to use my cache proxy, and if the Server can handle it
> offer it to others, on openstreetmap.org. This would both
> considerablyincrease a users experience while also reducing the load on
> the original tiles server. My plan is to do so using an browser
> extension. I have not found uncompressed javascript code for
> openstreetmap.org from which to extract the functions to call in order
> to change the tiles server, What I have found from decompressing the
> assets-.js is: 
>
>> L.OSM.TileLayer = L.TileLayer.extend({
>>     options: {
>>     url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png;,
>>     attribution: '\xa9 > href="https://www.openstreetmap.org/copyright;
>> target="_blank">OpenStreetMap contributors'
>>     },
>>     initialize: function(t) {
>>     t = L.Util.setOptions(this, t),
>> L.TileLayer.prototype.initialize.call(this, t.url)
>>     }
>>     })
> I believe this to be where the map is initialized, but executing the
> same pice of code with my domain is not working. I am wondering:
>
>  1. was is the least stupid way in order to change the tiles after the
> Page has been loaded?
>  2. Is there any better way than writing a plugin for that job?
>
>
> Greetings,
> Moritz
>
>
>
> ___
> dev mailing list
> dev@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev


signature.asc
Description: OpenPGP digital signature
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev