Giter Site home page Giter Site logo

Polygons about sheetsee.js HOT 10 CLOSED

CrokinoleMaster avatar CrokinoleMaster commented on September 25, 2024
Polygons

from sheetsee.js.

Comments (10)

jlord avatar jlord commented on September 25, 2024

Gah! Documentation is hard... I guess I wrote it as a blog post and then didn't write in the actual documentation and I guess just had the memory "I've written this...somewhere" -- anyways. Sorry about that. Here is the blog post that talks about that:

http://jlord.github.io/blog/sheetsee-3.html

I will add it to the actual docs!

from sheetsee.js.

jlord avatar jlord commented on September 25, 2024

Added ๐Ÿ“
http://jlord.github.io/sheetsee.js/docs/sheetsee-maps.html

from sheetsee.js.

lostingz avatar lostingz commented on September 25, 2024

thanks very much

from sheetsee.js.

CrokinoleMaster avatar CrokinoleMaster commented on September 25, 2024

Thanks for the quick reply and adding docs right away! But the part I don't understand is actually the "correct coordinate structure" in the google spreadsheet. I tried adding multiple 'LAT', 'LONG' cells to a row and adding a 'COORDINATE' cell with the coordinates string, but neither of those worked. I keep getting back a "point"' when I use the 'createGeoJSON' method. Maybe I'm not missing something obvious...

from sheetsee.js.

jlord avatar jlord commented on September 25, 2024

The column name should be either 'multipoloygon', 'linestring' or 'polygon' -- so sorry, that's still not clear at all. I'll fix that, too!

Right now sheetsee expects a column to be all of one of the things, ie a column with only linestring coordinates, so you couldn't have one row with a linestring and one with a polygon in the same column called 'linestring'.

If you had a map that had all three kinds of those things you'd need a column for each. Does that make sense?

I'll try to put together a spreadsheet example of these soon.

Thanks so much for finding these holes and bearing with me!

from sheetsee.js.

CrokinoleMaster avatar CrokinoleMaster commented on September 25, 2024

I think I get what you mean. I created a column called 'POLYGON' then put the coordinate string in the cell. However, it's causing an error,

shapeJSON is not defined

In the line

var shapeFeature = shapeJSON(lineItem, type, optionObj)

Perhaps I'm still doing something wrong?

Thanks for helping me through this!

from sheetsee.js.

CrokinoleMaster avatar CrokinoleMaster commented on September 25, 2024

I think i found a bug. I'll make a pull request.

from sheetsee.js.

CrokinoleMaster avatar CrokinoleMaster commented on September 25, 2024

#46
This fixes the error I was getting. Do you think it's the right fix? Thanks!

from sheetsee.js.

jlord avatar jlord commented on September 25, 2024

I just left a comment about doing your PR on sheetsee-maps -- thanks so much for all this help!

I just did a quick test map for all the polygon stuff: http://jlord.github.io/mappy

The spreadsheet

I'll turn it into a proper demo for the site.

from sheetsee.js.

CrokinoleMaster avatar CrokinoleMaster commented on September 25, 2024

Very awesome!

from sheetsee.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.