Skip to content

Commit

Permalink
Reset municipality after layer change
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbarbosa committed Dec 30, 2023
1 parent 94f0b0d commit 4bd40d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @typedef {import('../data/regions.js').Name} Name
*/

import { setMunicipalityType } from './tokyo.js';
import { setMunicipality, setMunicipalityType } from './tokyo.js';
import { setCity } from './map/cities.js';
import { clearRegion, resetMap } from './map/regions.js';
import { layers } from '../data/dict.js';
Expand All @@ -26,6 +26,7 @@ export function setLayer(layer) {
setTimeout(() => {
resetMap();
clearRegion();
setMunicipality(null);
}, 1);
}

Expand Down

0 comments on commit 4bd40d0

Please sign in to comment.