Adapt code of GeoMapVisualization for testing purpose