|
@@ -506,7 +506,7 @@ export function gotoPosition(point, color) {
|
|
|
|
|
|
//区边界
|
|
|
export function regionZone(name) {
|
|
|
- invokeParams('goToPosition', {
|
|
|
+ invokeParams('ShowData', {
|
|
|
name: 'car_layer',
|
|
|
type: 'layer',
|
|
|
isLocate: true,
|
|
@@ -520,7 +520,8 @@ export function regionZone(name) {
|
|
|
},
|
|
|
data: {
|
|
|
layers: {
|
|
|
- name: name
|
|
|
+ name: '行政区划',
|
|
|
+ where: `名称='${name}'`
|
|
|
}
|
|
|
},
|
|
|
labels: [
|
|
@@ -552,3 +553,10 @@ export function regionZone(name) {
|
|
|
export function fullExtent() {
|
|
|
invokeParams('FullExtent');
|
|
|
}
|
|
|
+
|
|
|
+//3d/2d切换
|
|
|
+export function change3DTheme(is3D = false) {
|
|
|
+ invokeParams('switchView', {
|
|
|
+ type: is3D ? '3d' : '25d'
|
|
|
+ });
|
|
|
+}
|