code refactor

This commit is contained in:
MaysWind
2024-07-21 18:41:16 +08:00
parent bc0893b518
commit daf73dc964
+2 -2
View File
@@ -71,9 +71,9 @@ export function createLeafletMapInstance(mapHolder, mapContainer, options) {
const param = mapTileSource.tileUrlExtraParams[i];
if (param.paramValueType === 'tomtom_key') {
params.push('key=' + getTomTomMapAPIKey());
params.push(param.paramName + '=' + getTomTomMapAPIKey());
} else if (param.paramValueType === 'language' && options.language) {
params.push('language=' + options.language);
params.push(param.paramName + '=' + options.language);
}
}