mirror of
				https://github.com/gpxstudio/gpx.studio.git
				synced 2025-11-04 05:21:09 +00:00 
			
		
		
		
	fix error when adding custom overlay
This commit is contained in:
		@@ -184,7 +184,11 @@
 | 
			
		||||
                return $tree;
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            if ($map) {
 | 
			
		||||
            if (
 | 
			
		||||
                $currentOverlays.overlays['custom'] &&
 | 
			
		||||
                $currentOverlays.overlays['custom'][layerId] &&
 | 
			
		||||
                $map
 | 
			
		||||
            ) {
 | 
			
		||||
                try {
 | 
			
		||||
                    $map.removeImport(layerId);
 | 
			
		||||
                } catch (e) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user