Home > database >  C # how to obtain the form window webbrowser control page js defined in object, urgent, please give
C # how to obtain the form window webbrowser control page js defined in object, urgent, please give

Time:09-25


Var mapObj=null;

The function mapInit () {

Var mapoption=new MMapOptions ();

Mapoption. The toolbar=MConstants. ROUND;//set the initial map tools, ROUND: the new ROUND bar

Mapoption. OverviewMap=MConstants. SHOW;//set the state of hawkeye map, SHOW: display, HIDE, HIDE (default)

Mapoption. Scale=MConstants. SHOW;//initialization setting map scale state, SHOW: display (the default), HIDE, HIDE,

Mapoption. Zoom=13;//to load the map zoom level

Mapoption. Center=new MLngLat (116.397428, 39.90923);//to load the center of the map of latitude and longitude coordinates

Mapoption. Language=MConstants. MAP_CN;//set the map types, MAP_CN: Chinese map (the default), MAP_EN: English map

Mapoption. FullScreenButton=MConstants. SHOW;//Settings are displayed full screen button SHOW: display (the default), hidden HIDE:

Mapoption. CenterCross=MConstants. SHOW;//set the cross in the center of the map display, SHOW, display (the default), hidden HIDE:

Mapoption. ToolbarPos=new MPoint (20, 20);//position on this map shows the toolbar Settings

MapObj=new MMap (" map ", mapoption);//map initialize

}

The function DoCenterZoom () {

Var LNG=document. GetElementById (' txtMapLng). The value;

Var lat=document. GetElementById (' txtMapLat). The value;

Var zoom=document. GetElementById (' zoomLevel). The value;

MapObj. SetZoomAndCenter (zoom, new MLngLat (LNG, lat));//at the same time set up the center of the map and zoom level

}

C # how to obtain the form window webbrowser control page js mapobj defined in object, troubled for a long time, please teach

CodePudding user response:

You seem to send the wrong area, this to you. The net area is better,