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

Doesn't seem to work #3

Open
THuffam opened this issue May 28, 2017 · 3 comments
Open

Doesn't seem to work #3

THuffam opened this issue May 28, 2017 · 3 comments

Comments

@THuffam
Copy link

THuffam commented May 28, 2017

Hi I've tried adding this to my project but it makes no difference. I can see that the CSS and JS have loaded but the attribution control looks the same. Any suggestions?
I am using it in an Aurelia SPA app.

Kind Regards
Tim

@areichman
Copy link
Owner

How wide is your map container? As-coded, the additional CSS class will only be added when the map container is smaller than 600px. For map containers larger than that (e.g. tablets, desktops generally) it should look the same as usual.

@THuffam
Copy link
Author

THuffam commented May 29, 2017

Thanks for your response.
My container is 100% width of the screen. And on an Android mobile screen I think it's 360 wide.
I am using Leaflet in a SPA (using Aurelia) - so I am dynamically loading your .js file - after it has loaded the leaflet script but before the map is instantiated. Is this correct?

@areichman
Copy link
Owner

I don't have an Aurelia environment to test, but that sounds right. You can try to check what width is being reported for your container to see if it should be triggering the additional CSS class.

The other thing to check...It's been a while since I created this and I was using Leaflet 0.7.x. If you are using 1.x, it's possible there are some minor tweaks that need to be made based on changes to their control interface.

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