Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Overlay's image bigger than my bitmap

Overlay's image bigger than my bitmap

All your problems with Audio, Video and Images.

Overlay's image bigger than my bitmap

Postby luisfigo87 » Mon Aug 31, 2009 10:07 am

Hi guys,
I've a problem with BitmapDrowable insert in an ItemizedOverlay object as overlay.
I must put many overlays on a map and when I click nearby the image but NOT ON THE IMAGE, the onTap() method is called.
My Bitmaps are so many and so the onTap method of the last ItemizedOverlay added is called if 2 or plus image are close.

This is an extract of mu code:

the method that create the OverlayItemCollection:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.                 BitmapDrawable img = (BitmapDrawable) getResources().getDrawable(R.drawable.dot);
  3.  
  4.                 currentPos = new OverlayItemCollection(this,img,false);
  5.  
  6.  
Parsed in 0.013 seconds, using GeSHi 1.0.8.4


and the OverlayItemCollection:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. public class OverlayItemCollection extends ItemizedOverlay<OverlayItem> {
  3.  
  4.  
  5.  
  6.         private Context context;
  7.  
  8.         private boolean inDb;
  9.  
  10.  
  11.  
  12.         private List<OverlayItem> items = new ArrayList<OverlayItem>();
  13.  
  14.  
  15.  
  16.         public OverlayItemCollection(Context context, Drawable marker, boolean inDb) {
  17.  
  18.                 super(boundCenterBottom(marker));
  19.  
  20.                 this.context = context;
  21.  
  22.                 this.inDb = inDb;
  23.  
  24.         }
  25.  
  26.  
  27.  
  28.         @Override
  29.  
  30.         protected OverlayItem createItem(int i) {
  31.  
  32.                 return items.get(i);
  33.  
  34.         }
  35.  
  36.  
  37.  
  38.         @Override
  39.  
  40.         public int size() {
  41.  
  42.                 return items.size();
  43.  
  44.         }
  45.  
  46.  
  47.  
  48.         public void clear() {
  49.  
  50.                 items.clear();
  51.  
  52.         }
  53.  
  54.  
  55.  
  56.         public void addOverlay(OverlayItem item) {
  57.  
  58.                 items.add(item);
  59.  
  60.                 populate();
  61.  
  62.         }
  63.  
  64.  
  65.  
  66.         @Override
  67.  
  68.         protected boolean onTap(int i) {
  69.  
  70.  
  71.  
  72.                 Integer id;
  73.  
  74.  
  75.  
  76.                 try {
  77.  
  78.                         id = new Integer(items.get(i).getSnippet());
  79.  
  80.                 } catch (NumberFormatException e) {
  81.  
  82.                         id = null;
  83.  
  84.                 }
  85.  
  86.  
  87.  
  88.                 new PopUpInfo(context, id, items.get(i).getTitle(),inDb).show();
  89.  
  90.  
  91.  
  92.                 return true;
  93.  
  94.  
  95.  
  96.         }
  97.  
  98.  
  99.  
  100. }
  101.  
  102.  
Parsed in 0.011 seconds, using GeSHi 1.0.8.4


Can someone help me?
luisfigo87
luisfigo87
Freshman
Freshman
 
Posts: 3
Joined: Thu Aug 20, 2009 9:36 pm

Top

Postby abrakadabra_srb » Tue Dec 01, 2009 1:14 pm

Hey luisfigo!

I am facing the same problem! Have you found any solution to it yet?

Thanks!

abrakadabra_srb
abrakadabra_srb
Freshman
Freshman
 
Posts: 2
Joined: Mon Nov 30, 2009 11:13 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 8 guests