[Mapbender-commits] r9704 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 8 06:22:29 PST 2017
Author: armin11
Date: 2017-03-08 06:22:29 -0800 (Wed, 08 Mar 2017)
New Revision: 9704
Modified:
trunk/mapbender/http/php/mod_transformTimeDimension.php
Log:
Support for 200 concurrent timevalues
Modified: trunk/mapbender/http/php/mod_transformTimeDimension.php
===================================================================
--- trunk/mapbender/http/php/mod_transformTimeDimension.php 2017-03-06 16:14:11 UTC (rev 9703)
+++ trunk/mapbender/http/php/mod_transformTimeDimension.php 2017-03-08 14:22:29 UTC (rev 9704)
@@ -22,7 +22,8 @@
require_once(dirname(__FILE__)."/../../core/globalSettings.php");
$objDateTime = new DateTime('NOW');
-$maxEntries = 15;
+$maxEntries = 200;
+$maxConcurrentEntries = 10;
$default = false;
$userValue = false;
$operation = "configureTimeline";
@@ -323,6 +324,9 @@
$result->options->editable->updateTime = true;
}
} else {
+ //below max entries
+ //check for $maxConcurrentEntries;
+ $result->options->zoomMax = $seconds*$maxConcurrentEntries*1000;
$result->data[0]->id = 0;
if ($fullYearExtent == true) {
$result->data[0]->content = $startTime->format('Y');
@@ -349,7 +353,8 @@
//re-initialize starttime because in case of a interval the time is incremented in the else loop before
$oldStartTime = new DateTime($interval[0]);
$result->options->min = $oldStartTime->format('c');
- $result->options->max = $endTime->format('c');
+ $result->options->max = $endTime->format('c');
+
$result->result->error = false;
$result->result->message = "All done";
break;
More information about the Mapbender_commits
mailing list