Adding a Geoserver Custom Map

Karen Roets 2 years ago

I am getting the error blocked:mixed-content where yours is saying CORS error.

Anton Tananaev 2 years ago

Mixed content probably means that you're trying to use HTTP tiles within HTTPS session.

Karen Roets 2 years ago

Hi All,

I have managed to add my Geoserver map to Traccar but the tiles are not pulling through correctly. Does anyone know how to fix this?

https://photos.onedrive.com/share/E0046EDC7E8AA151!10071?cid=E0046EDC7E8AA151&resId=E0046EDC7E8AA151!10071&authkey=!APAQhGTgVuC-2A4&ithint=photo&e=rSt8mr

Anton Tananaev 2 years ago

It probably means the tile format is not the same.

Karen Roets 2 years ago

Any advise on how to chance the format and what the correct format is?

I found on stackoverflow the following answer but I am not sure where to change the dimensions of the gridset as I only see the tiles height and width but they are in pixel:

Thanks for clarifying the question, I've looked into it and have found a solution. Previously I used a code gridset (4326) with dimensions of 2x1, so I used a code gridset (900913) with dimensions of 1x1. I also found the use of "flipY=true" so that the position of the map that is clipped from top to bottom is correct. so that the previous url : 'localhost:8090/geoserver/gwc/service/tms/1.0.0/…{z}/{x}/{y}.png?flipY=true' Become : 'localhost:8090/geoserver/gwc/service/tms/1.0.0/…{z}/{x}/{y}.png?flipY=true' And it works.

Anton Tananaev 2 years ago

I have no advice because I'm not familiar with the software you're using for tiles.