我非常需要您的帮助。!!!!
我是韩国人。 现在的位置很尴尬。 要求快速解决问题。
使用的版本:iOS imobile 10i, 10.1.1
我的源代码:
-(void)openMap {
// 初始化
m_workspace = [[Workspace alloc]init];
//m_mapControl = [[MapControl alloc]init];
[m_mapControl mapControlInit];
m_map = m_mapControl.map;
[m_map setWorkspace:m_workspace];
DatasourceConnectionInfo *info = [[DatasourceConnectionInfo alloc]init];
[info setEngineType:ET_GOOGLEMAPS];
[info setServer:@"https://www.google.co.kr/maps"];
[info setAlias:@"GoogleMaps"];
datasourcegoogle = [m_workspace.datasources open:info];
Dataset *ds = [datasourcegoogle.datasets get:0];
[m_map.layers addDataset:ds ToHead:YES];
dyview = [[DynamicView alloc]init];
[m_mapControl addDynamicView:dyview];
DynamicStyle *style = [[DynamicStyle alloc]init];
[style setWidth:900];
[style setHeight:900];
[style setBitmap:[UIImage imageNamed:@"xcc"]];
Point2D *point1 = [[Point2D alloc]initWithX:0 Y:0];
point = [[DynamicPoint alloc]init];
[point setName:@"asdf"];
[point setStyle:style];
[point addPoint:point1];
[point setTag:@"agagasgs"];
[point setAlignment:DYN_CENTER];
[dyview addElement:point];
[dyview refresh];
}