Skip to content
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

Layer does not cover entire map #69

Open
LukePrior opened this issue Apr 6, 2021 · 2 comments
Open

Layer does not cover entire map #69

LukePrior opened this issue Apr 6, 2021 · 2 comments

Comments

@LukePrior
Copy link

I have added the layer using the methods shown in the demo. It looks good but I'm running into an issue where nothing is displayed on the bottom of the map (see picture). What should I be looking at to fix this?

image

Cheers

@danwild
Copy link
Contributor

danwild commented Apr 7, 2021

Issue is not present in the demo, likely a css problem so you'd need to provide a full example.

@LukePrior
Copy link
Author

Issue is not present in the demo, likely a css problem so you'd need to provide a full example.

I've been debugging and it seems to be an issue with this._map.getSize(), I have set it up to log the value of that and it shows {x: 2140, y: 1076}, I have also added the following javascript code to log the height of the map container console.log(document.getElementById('mapid').clientHeight); which returns 1097. I'm confused as to why map.getSize() is returning a different value and causing the layer not to display fully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants