Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 20ecec4e

Přidáno uživatelem Jakub Vašta před asi 4 roky(ů)

Re #7857 - first zcu heatmap data visualization
+ leaflet, leaflet-heatmap

Zobrazit rozdíly:

website/src/Controller/HeatmapController.php
32 32
        ]);
33 33

  
34 34
    }
35

  
36
    /**
37
     * @Route("heatmap/opendata", name="opendata")
38
     */
39
    public function opendata() {
40

  
41
        $manager = new Manager(
42
            'mongodb://root:root@database'
43
        );
44
        
45
        $openData = $manager->executeQuery('open-data-db.KOLOBEZKY31102018', new Query([], []));
46
        $openData->setTypeMap([
47
            'array' => 'array',
48
            'document' => 'array',
49
            'root' => 'array'
50
            ]);
51

  
52
        return $this->json($openData->toArray());
53

  
54
    }
35 55
}

Také k dispozici: Unified diff