Error 403 loading OSM resources using HTTPS

ss884 years ago

Is it possible to load map images

 ( https://maps.wikimedia.org/osm-intl/ ) 
using the http protocol ?

Anton Tananaev4 years ago

Don't really understand the question.

ss884 years ago

I run Traccar on my server which i manage through a virtualization solution : i created a VM to host and run Traccar which i want to access by an external machine. The remote access is fine but the problem is that the map doesn't load i get the error following :

 maps.wikimedia.org/osm-intl/4/10/5.png:1 Failed to load resource: the server responded with a status of 403 () 
Anton Tananaev4 years ago

How would http help with this problem?

ss884 years ago

I don't know just a thought, do you have a clue how to fix this ?

Anton Tananaev4 years ago

Use different map.

ss884 years ago

You mean something like Mapbox ? wouldn't it require to rewrite a lot of code to replace the openlayers related part ?

Anton Tananaev4 years ago

We support so many map layers out of the box. Why would you want to change any code?

ss884 years ago

you mean yandexSat, yandexMap and the others ?

Anton Tananaev4 years ago

You can switch map layer in user or server settings. I would recommend you to take your time and study what's available in Traccar before asking any further questions.

ss884 years ago

Yes thank you Anton ! i changed the type var in baseMap.js to 'yandexSat' and now it works ! THANKS !

Anton Tananaev4 years ago

I'm not sure why you are changing it in the code, but whatever works for you.

ss884 years ago

How could the user change the map he will be using from the interface ? (what is the menu to use ?)
With the code it's more fun i think ! :D

Anton Tananaev4 years ago

I already answered that question.

ss884 years ago

Alright thanks for the help on this ! i put the default map to use yandexSat now and it works ! user settings preference is a different story i think.