From 09be66da35674af18d270fa16761bf04fc4b2c1a Mon Sep 17 00:00:00 2001 From: Brandon Tilley Date: Mon, 23 Dec 2013 14:15:36 -0800 Subject: [PATCH] Add FAQ --- site/public/documentation/_layout.ejs | 6 +++++- site/public/documentation/faq.md | 31 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 site/public/documentation/faq.md diff --git a/site/public/documentation/_layout.ejs b/site/public/documentation/_layout.ejs index 284ce10..3f1ac23 100644 --- a/site/public/documentation/_layout.ejs +++ b/site/public/documentation/_layout.ejs @@ -43,9 +43,13 @@ ' href='/documentation/builtin_drag.html'>Drag + ' href='/documentation/faq.html'> + FAQ + + ' href='/documentation/help.html'> Getting Help - + diff --git a/site/public/documentation/faq.md b/site/public/documentation/faq.md new file mode 100644 index 0000000..b55bcad --- /dev/null +++ b/site/public/documentation/faq.md @@ -0,0 +1,31 @@ +FAQ +=== + +**Q:** Why can't I access my DOM element? + +**A:** Planetary.js provides no methods for DOM access or for waiting for the DOM ready event; you'll need to handle this on your own or use a third-party library. + +
+ +
+ +**Q:** Why doesn't my `canvas` element work with Planetary.js? + +**A:** Planetary.js asks for raw DOM elements; if you have an element wrapped with jQuery, D3, or a similar library, you'll need to unwrap it to pass to your +planet's `draw` method. + +
+ +
+ +**Q:** How do I manipulate my globe? + +**A:** The planet object has methods and properties for manipulating the globe; most notable is the `projection` property. See the [Planet API](/documentation/planet.html) for more information. + +
+ +
+ +**Q:** I'm getting "Cannot read property 'geo' of undefined" or "Cannot call method 'feature' of undefined." + +**A:** Ensure you're requiring the [D3](http://d3js.org/) and [TopoJSON](https://github.com/mbostock/topojson) libraries before Planetary.js