开发者

error in adding overlay in current location

开发者 https://www.devze.com 2023-03-06 01:04 出处:网络
how to add overlay item in my current location in this code this is my codeof adding over lay item in my current location but i get this error

how to add overlay item in my current location in this code this is my code of adding over lay item in my current location but i get this error

enter code here
public class MyLocationListener implements LocationListener

{ @Override

 public void onLocationChanged(Location loc)

           {





GeoPoint point = new GeoPoint(    (int) (loc.getLatitude() * 1E6), 
        (int) (loc.getLongitude() * 1E6));
 mapOverlays = mapView.getOverlays();
drawable11 = this.getResources().getDrawable(R.drawable.vitblue);
itemizedOverlay11= new HelloItemizedOverlay(drawable11,this);
OverlayItem over11 = new OverlayItem(point, "offff", "over5");


itemizedOverlay11.addOverlay(over11);

//开发者_如何学GoThe constructor HelloItemizedOverlay(Drawable, tryanabtry.MyLocationListener) is undefined


Make sure you include the class HelloItemizedOverlay in your project and you are calling the constructor correctly....

0

精彩评论

暂无评论...
验证码 换一张
取 消