|
- function SignView(lon, lat) {
- var Url = GetUrl();
- var ID = api.pageParam.ID;
- map = api.require('bMap');
- if (api.systemType == 'ISO') {
- map.initMapSDK(function(ret) {
- if (ret.status) {
- //alert('地图初始化成功,可以从百度地图服务器检索信息了!');
- }
- });
- }
- map.open({
- rect: {
- x: 0,
- y: 40,
- w: api.frameWidth,
- h: 300
- },
- zoomLevel: 15,
- showUserLocation: true,
- fixedOn: api.frameName,
- fixed: true
- }, function(ret) {
- if (ret.status) {
- map.setCenter({
- coords: {
- lon: lon,
- lat: lat
- },
- animation: false
- });
- }
- });
- }
复制代码 |
|