Android Google Map multiple markers on same location -


i have simple app google map , dynamicly loading markers. in case 2 or more markers have same lat , long 1 presented. there solution this? how plot markers map

private void plotmarkers(arraylist<mymarker> markers, string markericon)     {         if(markers.size() > 0)         {              (mymarker mymarker : markers)             {                 // create user marker custom icon , other options                // toast.maketext(getapplicationcontext(), mymarker.getmlatitude().tostring(), toast.length_short).show();                 markeroptions markeroption = new markeroptions().position(new latlng(mymarker.getmlatitude(), mymarker.getmlongitude()));                 markeroption.icon(bitmapdescriptorfactory.fromresource(managemarkericon(markericon)));                  marker currentmarker = mmap.addmarker(markeroption);                 mmarkershashmap.put(currentmarker, mymarker);                 mmap.setinfowindowadapter(new markerinfowindowadapter());             }         }     } 

even if could, how use these 2 overlapping markers? top 1 visible. instead, if 2 markers overlap, express data share in 1 marker contains them both.

this answer might assist: android google maps v2 - add object marker


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -