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

Doku options types #28

Open
ximex opened this issue Jan 21, 2016 · 4 comments
Open

Doku options types #28

ximex opened this issue Jan 21, 2016 · 4 comments

Comments

@ximex
Copy link

ximex commented Jan 21, 2016

look at the options.types.line. It should be: options.types.polyline

current:

var options = {
    folder: 'myshapes',
    types: {
        point: 'mypoints',
        polygon: 'mypolygons',
        line: 'mylines'
    }
}

correct:

var options = {
    folder: 'myshapes',
    types: {
        point: 'mypoints',
        polygon: 'mypolygons',
        polyline: 'mypolylines'
    }
}
@tmcw
Copy link
Contributor

tmcw commented Feb 16, 2016

Have you tested this to be true? I haven't looked at this module in a while, but it really appears like the option would be called line.

@ximex
Copy link
Author

ximex commented Feb 16, 2016

look at:

module.exports.line = justType('LineString', 'POLYLINE'); this "POLYLINE" is compared with the "line/polyline". Maybe change all "POLYLINE" and "line" to "LineString" as it is named in geojson

@tmcw
Copy link
Contributor

tmcw commented Feb 16, 2016

Yes, but the code, as it currently stands, would work correctly with the example in the readme, and not with the suggested example, right?

@ximex
Copy link
Author

ximex commented Feb 16, 2016

options.types[l.type.toLowerCase()]

l.type.toLowerCase() = polyline
options.types = {line: "mypolylines"}
so:
options.types["polyline"] = undefined
but with:
options.types = {polyline: "mypolylines"}
options.types["polyline"] = mypolyline

the example in the readme didn't work for me. i have changed it that it works.

@Miroko Miroko mentioned this issue Jun 14, 2017
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