-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Tile / Map Server #298
Comments
clone the git, then:
That will install with local modifications |
227 const customTiles = usp.get('customTiles');
228 if (customTiles)
229 loStore['customTiles'] = customTiles;
230 if (customTiles == 'remove')
231 loStore.removeItem('customTiles');
27 if (loStore['customTiles'] != undefined) {
28 custom_layers.push(new ol.layer.Tile({
29 source: new ol.source.OSM({
30 "url" : loStore['customTiles'],
31 maxZoom: 15,
32 transition: tileTransition,
33 }),
34 name: 'custom_tiles',
35 title: 'Custom tiles',
36 type: 'base',
37 }));
38 } This is in the code ... so you can do stuff with that within the limitations of that code. Append ?customTiles=URL to the tar1090 URL and see if that works. |
Thanks buddy!
Thank you,
Adam Stern
President
d:760.585.4084
t: 760.585.4090
e: ***@***.******@***.***>
a: Infinitely Virtual
1920 Hillhurst Avenue
Suite 290
Los Angeles, CA 90027
w: www.infinitelyvirtual.com<http://www.infinitelyvirtual.com/>
On Apr 8, 2024, at 01:14, wiedehopf ***@***.***> wrote:
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
227 const customTiles = usp.get('customTiles');
228 if (customTiles)
229 loStore['customTiles'] = customTiles;
230 if (customTiles == 'remove')
231 loStore.removeItem('customTiles');
27 if (loStore['customTiles'] != undefined) {
28 custom_layers.push(new ol.layer.Tile({
29 source: new ol.source.OSM({
30 "url" : loStore['customTiles'],
31 maxZoom: 15,
32 transition: tileTransition,
33 }),
34 name: 'custom_tiles',
35 title: 'Custom tiles',
36 type: 'base',
37 }));
38 }
This is in the code ... so you can do stuff with that within the limitations of that code.
Append ?customTiles=URL to the tar1090 URL and see if that works.
—
Reply to this email directly, view it on GitHub<#298 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AK6IIJLPEIZWW2YE3X4ZI4LY4JGUPAVCNFSM6AAAAABF3WE3SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGEZDSOJUGI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hello I have the same problem here. For me, I am running a normal osm tileserver on a different machine on the same network. The problem is that I don't know what exactly and where I need to change something.
in 3 differen files so i'm not sure where is should make changes. Do I also have to change something in the second piece of code and where would that be located? Do I change: Thanks in advance for your help |
Why didn't you try the URL i suggested?
|
Oh now I see. I understood your message wrong. Edit: Addition of next part |
Well check the dev console what's wrong. Possibly cross origin stuff. |
Yes, I know I'm supposed to debug this myself but I am not very fluent in the web dev language. The dev console says
but i feel like it should be trying
Am I right about this or is this normal behavior? |
URLs start with http |
|
I am now indeed getting Access-Control-Allow-Origin error like you said. I should be able to figure out now how to fix this... |
I managed to fix it, it was a cross origin access error. Thanks for the help! |
Normally you would share your solution here now, so that other people with the same problem don't have to search for the solution in the future, but can adopt your solution. |
The thing is, i have been fiddling with a lot of config files to try to fix it so I'm not sure if this will be as helpful. Quick overview: I have a client(my laptop), front end tar1090 (server 1) and back en tileserver (server2)
in
in file /etc/apache2/apache2.conf on server2. I also added:
in
in file /etc/apache2/sites-enabled/tileserver.conf on server2 Hope that helps! |
I carry a tile server for field work. I tried to directly modify the html/layers file, but it doesn't seem to make any changes to the web interface. Is there any way to add a custom tile server - it's url is very similar to an OSM server.
The text was updated successfully, but these errors were encountered: