[core] Feature IDs are always integers

This commit is contained in:
John Firebaugh
2016-05-16 16:33:24 -07:00
parent b7d395fcf6
commit 3c49fdc99d
3 changed files with 3 additions and 7 deletions

View File

@@ -159,7 +159,7 @@ v8::Local<v8::Object> toJS(const Feature& feature) {
Nan::Set(result, Nan::New("properties").ToLocalChecked(), toJS(feature.properties));
if (feature.id) {
Nan::Set(result, Nan::New("id").ToLocalChecked(), toJS(*feature.id));
Nan::Set(result, Nan::New("id").ToLocalChecked(), Nan::New(double(*feature.id)));
}
return scope.Escape(result);