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

map doesn't show! #6

Closed
raoulEastwood opened this issue Mar 11, 2013 · 6 comments
Closed

map doesn't show! #6

raoulEastwood opened this issue Mar 11, 2013 · 6 comments

Comments

@raoulEastwood
Copy link

Hello !

Great job!
Exactly what I needed, easy customization and nice render.
I was very satisfied until... don't understand how... map disappeared...
No error, just an empty #container1...
I'm close to go back search another solution. Sadly...
Maybe u can 'throw an eye' on my page in case i missed something evident?

Thx for answer, I will send you the address by mail if you agree

regards,

rE

@markmarkoh
Copy link
Owner

Agreed. Send me a link.

@raoulEastwood
Copy link
Author

Done!

@markmarkoh
Copy link
Owner

The code in Generationlibre/js/map.js is trying to find $("#map_world"), which doesn't exist on the page. Change it to #container1 (so, $("#container1") )

And give #container1 a width/height.

@raoulEastwood
Copy link
Author

My bad, #map_world was a forgotten test...
I have added w/h.
No change.
Maybe a conflict with another script?

@markmarkoh
Copy link
Owner

Ah, it's just a timing issue. Wrap that map.js call in a

$(function() {
...
});

or insert the script files at the end of the page.

$('#container1') doesn't exist when the script is being executed. One of the 2 methods above will mitigate that.

@raoulEastwood
Copy link
Author

Exact Master!
A simple f*** timing issue!

Thanks a lot!

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