jumpinjackie / mapguide-rest

REST Extension for MapGuide Open Source
GNU Lesser General Public License v2.1
26 stars 14 forks source link

Selection Extents Fails #219

Closed flipper44 closed 11 months ago

flipper44 commented 11 months ago

Trying to get select extents Fails.

URL: http://localhost/mapguide/rest/session/af4a502e-937c-11ee-8000-784962cbfa7f_en_MTI3LjAuMC4x0AFC0AFB0AFA/ElectricMap.Selection/overview.json?bounds=true

Body: { "geometry": null, "selectionvariant": "INTERSECTS", "persist": "true", "layerattributefilter": "2", "requestdata": "1", "featurefilter": null, "selectionxml": "false", "format": "json", "maxfeatures": "-1", "append": "false", "layernames": null }

Error: Slim Application Error: Type: Error Message: Call to undefined method AppServices::urlFor() File: C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\util\utils.php Line: 155 Trace: #0 C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\controller\mapcontroller.php(769): MgUtils::GetNamedRoute()

1 C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\routes\v1\routes.session.php(391): MgMapController->GetSelectionOverview()

2 [internal function]: Closure->{closure}()

3 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Handlers\Strategies\RequestResponse.php(40): call_user_func()

4 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke()

5 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\Route->__invoke()

6 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\Route.php(268): Slim\Route->callMiddlewareStack()

7 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\App.php(503): Slim\Route->run()

8 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\MiddlewareAwareTrait.php(117): Slim\App->__invoke()

9 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\App.php(392): Slim\App->callMiddlewareStack()

10 C:\Program Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\App.php(297): Slim\App->process()

11 C:\Program Files\OSGeo\MapGuide\Web\www\rest\index.php(237): Slim\App->run()

12 {main}

View in rendered output by enabling the "displayErrorDetails" setting.