This repository has been archived by the owner. It is now read-only.

leaflet in baker publication #420

Closed
designomatt opened this Issue May 22, 2012 · 8 comments

Comments

Projects
None yet
4 participants
@designomatt

Has anyone been able get leaflet (leaflet.cloudmade.com) to work in their publication? I have the HTML files working fine on their own but when I put it together in XCode the app compiles but only shows a black screen. The console shows the app is "working" but I am stumped. Any guidance is greatly appreciated.

@nin9creative

This comment has been minimized.

Show comment
Hide comment
@nin9creative

nin9creative May 23, 2012

Contributor

Does any of the book work? Or just pages where you have the maps?

Contributor

nin9creative commented May 23, 2012

Does any of the book work? Or just pages where you have the maps?

@designomatt

This comment has been minimized.

Show comment
Hide comment
@designomatt

designomatt May 23, 2012

Yep. As a test, I just added the page to the example project updating the book.json, Book Index.html and index.html files.

Yep. As a test, I just added the page to the example project updating the book.json, Book Index.html and index.html files.

@Simbul

This comment has been minimized.

Show comment
Hide comment
@Simbul

Simbul Jun 4, 2012

Owner

Why have you had to modify so many files?
To get the test to be as simple as possible, I'd try:

  1. Compiling the example project with no modifications, just to make sure it is working fine
  2. Replacing the code for one of the existing pages (maybe not the first one) with the Leaflet code

If this fails to give you any meaningful insights, try removing or adding the Leaflet CSS and Javascript includes one by one, until you find exactly where the issue is ;)

Owner

Simbul commented Jun 4, 2012

Why have you had to modify so many files?
To get the test to be as simple as possible, I'd try:

  1. Compiling the example project with no modifications, just to make sure it is working fine
  2. Replacing the code for one of the existing pages (maybe not the first one) with the Leaflet code

If this fails to give you any meaningful insights, try removing or adding the Leaflet CSS and Javascript includes one by one, until you find exactly where the issue is ;)

@designomatt

This comment has been minimized.

Show comment
Hide comment
@designomatt

designomatt Jun 4, 2012

Haven't modified any files…took the simplest sample of leaflet that works in the browser and embedded it into the sample baker publication as another page and it won't work.

Haven't modified any files…took the simplest sample of leaflet that works in the browser and embedded it into the sample baker publication as another page and it won't work.

@Simbul

This comment has been minimized.

Show comment
Hide comment
@Simbul

Simbul Jun 4, 2012

Owner

Yup. What I mean is: don't add any new page, just put the code in an existing one.
What's the sample you used btw?

Owner

Simbul commented Jun 4, 2012

Yup. What I mean is: don't add any new page, just put the code in an existing one.
What's the sample you used btw?

@designomatt

This comment has been minimized.

Show comment
Hide comment
@designomatt

designomatt Jun 4, 2012

i will give it a try and see what happens (i am using the sample book project that comes with the download).

i will give it a try and see what happens (i am using the sample book project that comes with the download).

@designomatt

This comment has been minimized.

Show comment
Hide comment
@designomatt

designomatt Jun 5, 2012

Problem was the information was different on the newly added page and the existing. replaced the offending meta data and leaflet is working well.

Problem was the information was different on the newly added page and the existing. replaced the offending meta data and leaflet is working well.

@Simbul

This comment has been minimized.

Show comment
Hide comment
@Simbul

Simbul Jun 11, 2012

Owner

Cool!

Owner

Simbul commented Jun 11, 2012

Cool!

@folletto folletto closed this Aug 20, 2012

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.