Smobiler上海石磨_.NET移动开发平台

标题: 【求解】地图MapViewTag 属性应用方法 [打印本页]

作者: abd60    时间: 2019-2-9 11:40
标题: 【求解】地图MapViewTag 属性应用方法
本帖最后由 abd60 于 2019-2-11 09:40 编辑

请解答一下;
   MapViewTag ImageUrl 是否能更换图标,如何设置这个属性?

作者: Lula.Jin    时间: 2019-2-11 14:54
比如本地图片获取 InitialPoint3 = new MapViewPoint(120.819054f, 30.742832f, "途经点2", MobileResourceManager.GetResourceURL(this.Client.SessionID, "car.png", MobileResourceManager.DefaultUploadResourceName));     比如这样获取项目下upload文件中的car.png图片
作者: abd60    时间: 2019-2-11 16:09
多谢回复!
    问题没有解决!代码如下:
  1.                 var imageurl = MobileResourceManager.GetResourceURL(this.Client.SessionID, "cargps.png", MobileResourceManager.DefaultImageResourceName);
  2.                 PersonalCenterTag = new Smobiler.Plugins.MapViewTag(Longitude, Latitude, info, imageurl);
  3.                 mapView1.Tags.Add(PersonalCenterTag);

  4.                 MapViewRoute route = new MapViewRoute();
  5.                 route.Point.Add(new MapViewPoint(121.506396f, 31.245567f, "上海东方明珠", imageurl));
  6.                 mapView1.Routes.Add(route);
复制代码


Car.PNG : 200 * 200   40 *40 都没显示自定义定义图片[/code]
作者: Lula.Jin    时间: 2019-2-11 17:13
嗯,会把这个问提给技术部的




欢迎光临 Smobiler上海石磨_.NET移动开发平台 (https://www.smobiler.com/) Powered by Discuz! X3.2