ARiisgaard / Thesis

0 stars 0 forks source link

Style in overlayers: Overlapping elements #21

Closed ARiisgaard closed 4 years ago

ARiisgaard commented 4 years ago

I stumpled upon this example here, where tiff tiles are being colored locally. image

However, when I run the same code on my computer it looks like this:

image

image

The code is in the OpenlayerGeotiff brach

I have tried to insert some div's to seperate stuff, but I didn't solve the issue.

crstn commented 4 years ago

Where did you get the HTML, JS etc from – did you download it directly from the example page? I compared it to the version you have in your repo and the files seem to be different.

ARiisgaard commented 4 years ago

I did download it directly, by using ctrl + s - the only changes I made to the original file was moving the script to a seperate js file, change the source for the tiles to reference from 'tileSet/{TileMatrix}/{TileRow}/{TileCol}.tif' to http://webportals.ipsl.jussieu.fr/ScientificApps/dev/forge_patrick/eox/tileSet/{TileMatrix}/{TileRow}/{TileCol}.tif and I also reduced the number of coloring options

crstn commented 4 years ago

It looks to me like you have a version of the html file that has already been modified via javascript. That would also explain why you have two map panes, one of them being empty.

ARiisgaard commented 4 years ago

Jep, that was correct - I tried copying/pasting the html directly from Chromes dev tool and it worked like a charm