ItemizedOverlay problem!

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

ItemizedOverlay problem!

Postby Jompe71 » Sun Jun 26, 2011 9:01 pm

I need to create an ItemizedOverlay with custom Drawables. Sound like a simple task but as many others I stumble on the Markers not showing up.

So (Goog:ling) and trying out ALL hints about setting the Marker, setting the center bounding etc, still no Markers showing up! :shock:

I debugged the code and when following the example setting the bound as center bottom the bounds where NOT set to the 1/2 of the bitmap width. Since I created the Markers myself in PS I konw they are 32x35 in size but the bounds using retailerMarker.getIntrinsicWidth()/retailerMarker.getIntrinsicHieght() are like 22/35 ?

Well, never the less, Iäm not concerned about skewing ut the half size ratio, but the Marker not showing up att all.
SO, please give me your best tip on what is wrong!

Bottom line is I have done all the populate() in addOverlays(), setBounds() on the marker before passing to the ItemizedOverlay impl and the boundCenterBottom() in the super constructor call... STILL no luck!
There is no school like old school gaming.
Jompe71
Experienced Developer
Experienced Developer
 
Posts: 69
Joined: Sat Oct 25, 2008 2:21 pm
Location: Stockholm Sweden

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests