File tree Expand file tree Collapse file tree
libs/map/dataset/src/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ import {
5252 LayerControl ,
5353 LayerHighlight ,
5454 LayerSimpleMapboxBuild ,
55- printTreeFromNode ,
5655 useMapDataset ,
5756} from ' @hungpvq/vue-map-dataset' ;
5857import {
@@ -266,7 +265,6 @@ function onMapLoaded(map: MapSimple) {
266265 dataset .add (groupLayer2 );
267266 dataset .add (identify );
268267 dataset .add (metadata );
269- printTreeFromNode (dataset );
270268 addDataset (dataset );
271269 addDataset (createDatasetPoint ());
272270 addDataset (createDatasetLineString ());
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ const props = defineProps({
2828 ... makeShowProps ({ show: false }),
2929});
3030const { mapId, moduleContainerProps } = useMap (props );
31- const { trans, setLocale } = useLang (mapId .value );
32- setLocale ({
31+ const { trans, setLocaleDefault } = useLang (mapId .value );
32+ setLocaleDefault ({
3333 map: {
3434 ' dataset-control' : {
3535 title: ' Dataset Control' ,
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ const props = defineProps({
3636const { mapId, moduleContainerProps } = useMap (props );
3737const { getAllComponentsByType, getDatasetIds } = useMapDataset (mapId .value );
3838const { setFeatureHighlight } = useMapDatasetHighlight (mapId .value );
39- const { trans, setLocale } = useLang (mapId .value );
39+ const { trans, setLocaleDefault } = useLang (mapId .value );
4040const { format : formatCoordinate } = useCoordinate (mapId .value );
41- setLocale ({
41+ setLocaleDefault ({
4242 map: {
4343 identify: {
4444 title: ' Identify' ,
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ defineSlots<{
3737 default(): any ;
3838}>();
3939const { mapId, moduleContainerProps } = useMap (props );
40- const { trans, setLocale } = useLang (mapId .value );
41- setLocale ({
40+ const { trans, setLocaleDefault } = useLang (mapId .value );
41+ setLocaleDefault ({
4242 map: {
4343 ' layer-control' : {
4444 title: ' Layer Control' ,
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ const props = defineProps({
3131 ... makeShowProps ({ show: false }),
3232});
3333const { mapId, moduleContainerProps } = useMap (props );
34- const { trans, setLocale } = useLang (mapId .value );
35- setLocale ({
34+ const { trans, setLocaleDefault } = useLang (mapId .value );
35+ setLocaleDefault ({
3636 map: {
3737 ' layer-info-control' : {
3838 title: ' Layer Info Control' ,
You can’t perform that action at this time.
0 commit comments