Does anyone have a widget that allows you to pick a date range from a calender to limit features on the map? For example I want to have some crime data on a map and have the user select a date range to show on the map. It would also then be nice to make it work with a chart widget.
Thanks for any help.
-Stan
Rickey,
Are you wanting to pick the overnight times for a single night? Right now you have night time hours for the entire date range. This is a fun project for me to tinker with. Thanks for letting me be of assistance.
Also I noticed on the popup the time in the date field is different from the time in the time field.
-Stan
Stan,
Any input is welcome!
A way to select certain hrs of the day such as 2pm-4am but let the user decide.
I guess that would just be a time slider I just don't know how one would be able select overnight times.
I had not noticed that there was a time next to the date. I will fix it. The Time in the time field is the right time.
Rickey,
I have been working on a time selector in conjunction with the date picker and it works kinda but not the way I like it so I am going to try something new.
-Stan
I really like the jquery date picker. It looks very slick!
Guys,
Hope you don't mind so more assistance. Here is the widget.js cleaned and improved:
The widget.html cleaned:
Robert,
Your input is always welcome!
Robert,
I copied your code into this demo3 and the filter does not seem to work.
The console log does not give any errors either.
Rickey,
The filter is getting applied to the last layer in your json which is the rickey_firehydrant layer. I was kind of confused on how you intended this widget to work with multiple layers when your filter logic was very specific to one particular layer so I just remove the rickey_firehydrant layer from my test environment.
Robert,
I see now, it is fixed.
Thank you!
Robert,
I am now trying to add another layer. Right now the plan is to use tabs to differentiate between the filtering process (I have the tabs set up). I cannot seem to find the part of the code that references the last layer in the json unless it is:
filterLayer = lLayer;
I need to change the lLayer to the title of the layer or another way to differentiate between the layers.
Thank you!