Questions tagged [overlayitem]

48 questions
2
votes
2 answers

How to find the distance between geopoints?

Good afternoon. I have the following code ParseQuery query = new ParseQuery("MyOb"); query.findInBackground(new FindCallback() { public void done(List myOb, ParseException e) { if (e == null) { …
2
votes
1 answer

OverlayItem Drawable moves after being clicked

I have an app which displays icons a user can place and add details to. Recently I noticed, when a User clicks one of the icons, it moves down slightly. Any suggestions welcome ! Before After
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
2
votes
3 answers

MapView very slow with 1000 overlayitems on the map, even with only 2 visibles

I have a mapview showing 1000 overlayitems on the mapview. The map moves very slow even if only two overlayitems are visibles on the map (huge zoom applyed) It is possible to optimice the mapview to move more fast if only low cuantity of…
Pableras84
  • 1,195
  • 5
  • 18
  • 30
2
votes
0 answers

Animate an OverlayItem when retrieving coordinates from a WebService

I'm using a webservice to follow a car position and i display the car position on a map with an Overlay item. I'm able to refresh the position of the car by removing/adding the overlayItem, however i would like to animate it from the old coordinates…
M to the K
  • 1,576
  • 3
  • 17
  • 27
1
vote
0 answers

How can I set a title/caption for an overlay item and create onclick/long pressed listener for that item to start an new activity?

My application will find the users around myself and shown it on the map. I can add the overlayItem on the mapView but how can I add some caption for the image for example the user name. After I clicked the item, a dialog box is shown. Can I set a…
Chleung49
  • 41
  • 7
1
vote
1 answer

Callout MapView Android

Is it possible to have a callout attached to an ItemizedOverlay item like in the iPhone and Google maps?
Lee Armstrong
  • 11,420
  • 15
  • 74
  • 122
1
vote
1 answer

Does anyone know how to create a message bubble with 2 buttons appears on top of an overlayitem for map application using android 2.1?

I currently have implemented an overlay item that shows an icon for Geo-point on a map application in Android. When the icon is clicked, it brings up an AlertDialog from the onTap method below. I have the following questions: Does anyone know how…
Bryan C
  • 1,594
  • 4
  • 16
  • 30
1
vote
1 answer

Android OverlayItem doesn't show a message

thats my code: OverlayItem overlayItem = new OverlayItem(point, "Test", "Hello"); itemizedOverlay.addOverlay(overlayItem); mapOverlays.add(itemizedOverlay); When i run this app i can see the map with my item on it, but when click on it nothing…
1
vote
2 answers

Drawing a pin on google map through android application

I"m new with google maps, I'am doing an android application in which I want to make a button , which on click shows a map with a pin on a certain place that i previously declared (i already have the longitude and latitude). I also want the user to…
0
votes
1 answer

Adding maps marker on point selected

I'm having a lot of trouble adding a marker to the user selected spot. Here is my code public class ShowMapActivity extends MapActivity { public static Context context; private MapController mapController; MapView mapView; private LocationManager…
CitizenSmif
  • 103
  • 1
  • 3
  • 12
0
votes
3 answers

How to extract OverlayItem from Overlay?

I need to check if the data of a newly created OverlayItem is already existing on the list of OverlayItems already displayed on the map. I made a code to check if the data of the OverlayItem is already existing but I'm encountering an error on it.…
Arci
  • 6,647
  • 20
  • 70
  • 98
0
votes
1 answer

Android Map Overlay Shifting after AlertDialog opened

I have a map based Android program, that is working nicely, I have it opening an alert dialog when an overlay is clicked... I start the app, and see my overlays, and all is fine, until I select an overlay. When I select an overlay, my alert dialog…
Speckpgh
  • 3,332
  • 1
  • 28
  • 46
0
votes
0 answers

Android OverlayItem on View class

I am searching for a solution that will place an OverlayItem on a simple class extends View. All tutorials about OverlayItems are showing only how to set them up on MapView. I know, there's that method, getOverlays() or something, which returns…
Seraphis
  • 1,026
  • 2
  • 14
  • 30
0
votes
1 answer

Overlay not applying to react big calendar

I'm using react-big-calendar with react-sidebar and if the sidebar opens, all the area is covered by overlay but some elements are visible on the top. What can be the problem? P.S: I've also given the z-index to both but nothing worked for…
Ali Ahmad
  • 51
  • 1
  • 1
  • 4
0
votes
1 answer

Map Layer Issues in ggplot2

I'm having a few issues with finalizing my map for a report. I think I'm warm on the solutions, but haven't quite figured them out. I would really appreciate any help on solutions so that I can finally move on! 1) The scale bar will NOT populate in…