|
|
@@ -71,15 +71,15 @@ export function useMap2D(): UseMap2DReturn {
|
|
|
destroyMap();
|
|
|
|
|
|
const appStore = useAppStore();
|
|
|
- const { style = vjmap.openMapLightStyle(), wjId } = config;
|
|
|
+ const { style = vjmap.openMapLightStyle(), wjId = 'c96e7423dab1' } = config;
|
|
|
|
|
|
container.style.background = 'transparent';
|
|
|
container.style.width = `${get(container, 'parentElement.clientWidth', 0) / appStore.widthScale}px`;
|
|
|
container.style.height = `${get(container, 'parentElement.clientHeight', 0) / appStore.heightScale}px`;
|
|
|
|
|
|
const res = await svc.openMap({
|
|
|
- mapid: wjId || 'c96e7423dab1',
|
|
|
- fileid: wjId || 'c96e7423dab1',
|
|
|
+ mapid: wjId,
|
|
|
+ fileid: wjId,
|
|
|
mapopenway: vjmap.MapOpenWay.GeomRender,
|
|
|
style,
|
|
|
});
|