您好,我们这边通过外接的GPS信号,解析得到了实时定位的坐标。通过 DynamicView 添加一个图标,然后通过设置其位置坐标,使其实现定位;再其次,通过mapControl.panTo(location,100)。但是,却发现位置偏移贼大,都直接超出地图的范围了,在地图的外部了。请问DynamicView 到底是乃个具体的环节出现了错误???
dynamicCircle.setPoint(target_p);
mmapControl.panTo(target_p,100);
DynamicStyle dynamicStyle = new DynamicStyle();
dynamicStyle.setBackground(BitmapFactory.decodeResource(getResources(), R.drawable.location2));
dynamicCircle.setStyle(dynamicStyle);
dynamicView.setVisible(true);
dynamicView.addElement(dynamicCircle);
dynamicView.refresh();