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

Time enabled layer #90

Closed
keithfraley opened this issue Apr 11, 2018 · 7 comments
Closed

Time enabled layer #90

keithfraley opened this issue Apr 11, 2018 · 7 comments

Comments

@keithfraley
Copy link

i am curious how to set up the feature service output to be time enabled (and z value for that matter) so that we can use the time sliders in portal for arcgis or agol.

I have hacked together a provider that does this but would much rather this be part of the core product.

@rgwozdz
Copy link
Member

rgwozdz commented Apr 23, 2018

cross-posted from: koopjs/koop#305

@keithfraley - Looking at the code, I think the functionality it already there. FeatureServer looks in your provider's metadata to see if you have defined a timeInfo property, and if so, uses that in the layer info service (https://github.com/koopjs/FeatureServer/blob/master/src/templates.js#L54). So try including the timeInfo in your metadata with the following spec:

"timeInfo" : {
"startTimeField" : "",
"endTimeField" : "",
"trackIdField" : "",
"timeExtent" : [, ],
"timeReference" : {
"timeZone" : "",
"respectsDaylightSaving" : <true | false>
},
"timeInterval" : ,
"timeIntervalUnits" : ""
}
Spec pulled from here: https://developers.arcgis.com/rest/services-reference/layer-feature-service-.htm

Will setting up the above timeInfo object in provider metadata meet your needs?

@keithfraley
Copy link
Author

I am unable to find the providers metadata in order to define a timeInfo property. Can you help me specifcally where this is supposed to go?

@rgwozdz
Copy link
Member

rgwozdz commented Apr 25, 2018

Guessing you are using Elastic Search provider, so it would go here: https://github.com/koopjs/koop-provider-elasticsearch/blob/master/provider/models/esmodel.js#L22-L24

@keithfraley
Copy link
Author

keithfraley commented Apr 25, 2018 via email

@rgwozdz rgwozdz closed this as completed Apr 25, 2018
@rgwozdz
Copy link
Member

rgwozdz commented May 7, 2018

@keithfraley - is this resolved now?

@keithfraley
Copy link
Author

keithfraley commented May 7, 2018 via email

@keithfraley
Copy link
Author

keithfraley commented May 8, 2018 via email

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