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

Typeerror: GeoJSON is not a constructor #19

Open
rahulganguly opened this issue Mar 14, 2017 · 1 comment
Open

Typeerror: GeoJSON is not a constructor #19

rahulganguly opened this issue Mar 14, 2017 · 1 comment

Comments

@rahulganguly
Copy link

rahulganguly commented Mar 14, 2017

I was trying out the sample code on version 2.1.2 and I keep getting the following error
Typeerror: GeoJSON is not a constructor

var test = new GeoJSON({
any: {
type: "Point",
point: [-113.806458, 44.847784]
},
point: {
type: "Point",
coordinates: [12.123456, 13.134578]
}
});

I also tried the following

var pointData = {
point: {
type: "Point",
coordinates: [12.123456, 13.134578]
}
};
var geoLocation= new GeoJSON(pointData);

@muhammadfaizan
Copy link
Contributor

yeah that's an issue, you can use your model name, just like any other model you'd create.

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