itemizedoverlay

android, google map errors: BaseTileRequest, Server returned: 3

别来无恙 提交于 2019-12-17 20:33:14
问题 I got some strange errors while develop some custom map overlays, anyone experience these? pls help, tks in advance. BaseTileRequest.readResponseData(BaseTileRequest.java:115) MapService$MapTileRequest.readResponseData(MapService.java:1473) MapService$MapTileRequest.readResponseData(MapService.java:1473) 09-17 00:53:25.933: WARN/System.err(32480): java.io.IOException: Server returned: 3 09-17 00:53:25.933: WARN/System.err(32480): at android_maps_conflict_avoidance.com.google.googlenav.map

Anyone implemented the BalloonItemizedOverlay (with multiple points) successfully?

不问归期 提交于 2019-12-14 03:08:34
问题 i don't get it. i can plot one point successfully with the BalloonItemizedOverlay, however, when i plot multiple points, the background switches from a street view to a solid ocean blue color. the markers are plotted correctly on the overlay and i can click on the markers and it does what it's told, but i just don't get why my street view disappears and gets replaced by a ocean blue background. anyone else run into this? What am i doing wrong? I noticed that when it gets to the animateTo()

How do I decode a jpeg image encoded in Base64 in android and see it on an ImageView?

丶灬走出姿态 提交于 2019-12-13 02:54:34
问题 My server sends a encoded Base64 string to my android device. After that, I decode the Base64 string in this method to make a drawable of it. I can't see the image when I add it in an Itemizedoverlay. public Drawable seticon(String input){ byte[] b = Base64.decode(input, Base64.DEFAULT); Bitmap decodedByte = BitmapFactory.decodeByteArray(b, 0, b.length); Drawable drawable = new BitmapDrawable(decodedByte); drawable.setBounds(0, 0, 50, 50); return drawable; } public void setphotopoint(String

MapView Balloons to a DetailView

ぃ、小莉子 提交于 2019-12-13 01:00:03
问题 In my MapView there are shown Balloons like this:http://www.codemobiles.com/forum/code-mobile-topic-4180.html (it´s more or less the same code) What I want: If I press Balloon 1 it should open the Detail View with the Information of 1 and when I press the Ballon 2 it should open the Detail View with the informations of 2 I added this to the Itemized Overlay: c.startActivity(new Intent(c.getApplicationContext(), QuoteDetail.class)); So when I press Balloon 1 its open the DetailView with

Remove all Overlays

烂漫一生 提交于 2019-12-12 07:37:50
问题 I have the following code to add an Overlay myMapView.getOverlays().add(sites); myMapView.invalidate(); I also have the following remove code where sites is a global variable. if (sites != null) { // myMapView.getOverlays().clear(); myMapView.getOverlays().remove(sites); myMapView.invalidate(); sites = null; } Sometimes I am left with duplicates so would like a way to remove all overlays from a map, is this possible? 回答1: Looks like I did have the answer all along! myMapView.getOverlays()

confusion between overlay, overlayitem and itemizedoverley

痞子三分冷 提交于 2019-12-12 01:33:49
问题 I wanting to create an app which displays a map and on top of this map, the roads and points of interests will be painted as lines and ovals. These lines and ovals will have listeners attached to them so the user can drag them around or delete them. I am using openstreetmaps with osmdroid however it seems to be exactly the same as Google Maps. I was thinking of extending the OverlayItem class to represent a point of interest or a road. The Overlay class would be extended and contain an

Adding multiple overlays on mapview dynamically

孤街醉人 提交于 2019-12-11 17:38:12
问题 I've a mapView on which I managed to get an overlay onLongPress with the help of GestureListener. What I actually want is, I want to add markers (with same icon) one by one. Like I want to mark different positions on map (not all at once). Any help with this would be great as am newbie with MapView and Overlays. 回答1: Use ItemizedOverlay class to add drawable on specific longitudes and latitudes. In your MapActivity write GeoPoint your_point = (Provide geopoint information here); Drawable

Android ItemizedOverlay<OverlayItem> issue

送分小仙女□ 提交于 2019-12-11 08:27:23
问题 i have to put some overlays on map on specific point, i fetch the point coordinate from an API. i do the fetching in a asynctask. i succeeded to put the overlays, put when i do zoom on the map or span through it, the response is very slow. here's my overlayitem class and my asynctask public class Marker extends ItemizedOverlay<OverlayItem> { private Context con; private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>(); public Marker(Drawable defaultMarker) { super

osmdroid ItemizedOverlay error: The method boundCenterBottom(Drawable) is undefined for the type

怎甘沉沦 提交于 2019-12-10 17:54:54
问题 I'm struggling for some hours now with this problem: I'm trying to get my itemizedoverlay to work, but I keep getting this error: The method boundCenterBottom(Drawable) is undefined for the type my class: public MyDynamicItemizedOverlay(Drawable defaultMarker) { super(boundCenterBottom(defaultMarker)); items = new ArrayList<OverlayItem>(); populate(); } public void addNewItem(GeoPoint location, String markerText, String snippet) { items.add(new OverlayItem(snippet, markerText, location));

Android: How to to set imageView as a marker in google map API android?

泪湿孤枕 提交于 2019-12-10 14:11:33
问题 till now i was using drawable to populate marker on my map .Now i was wondering it would be cool if i could display custom imageview as a marker in map. till now i am doing it like itemized= new Itemazide(drawable, mContext); i want to achieve something like 回答1: Yeah I was wondering if I could do something like this, i.e. show a custom View instead of drawable. You can override draw() method, but unfortunately it always (someone please tell me I'm wrong) has to be drawable. I think it's