- New map right "share map" added, closed #927
- Upgraded "[_Select2_](https://select2.org/)" js lib `v4.0.6-rc.1` → `v4.0.13` - Fixed some issues where changed map settings (e.g. "share") do not get updated/stored, closed #889, closed #925 - Moved ajax endpoints for map create/update/delete into `/Api/Rest/` dir - Minor UI improvements for "manual dialog" (fixed pixelated text)
This commit is contained in:
@@ -77,11 +77,11 @@ class AccessController extends Controller {
|
||||
|
||||
/**
|
||||
* broadcast MapModel to clients
|
||||
* @see broadcastMapData()
|
||||
* @param Pathfinder\MapModel $map
|
||||
* @param bool $noCache
|
||||
*/
|
||||
protected function broadcastMap(Pathfinder\MapModel $map) : void {
|
||||
$this->broadcastMapData($this->getFormattedMapData($map));
|
||||
protected function broadcastMap(Pathfinder\MapModel $map, bool $noCache = false) : void {
|
||||
$this->broadcastMapData($this->getFormattedMapData($map, $noCache));
|
||||
}
|
||||
|
||||
|
||||
@@ -99,18 +99,13 @@ class AccessController extends Controller {
|
||||
/**
|
||||
* get formatted Map Data
|
||||
* @param Pathfinder\MapModel $map
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param Pathfinder\MapModel $map
|
||||
* @param bool $noCache
|
||||
* @return array|null
|
||||
*/
|
||||
protected function getFormattedMapData(Pathfinder\MapModel $map) : ?array {
|
||||
protected function getFormattedMapData(Pathfinder\MapModel $map, bool $noCache = false) : ?array {
|
||||
$data = null;
|
||||
try{
|
||||
$mapData = $map->getData();
|
||||
$mapData = $map->getData($noCache);
|
||||
$data = [
|
||||
'config' => $mapData->mapData,
|
||||
'data' => [
|
||||
|
||||
Reference in New Issue
Block a user