i used this link showing more location when scroll map, marker not scroll, i.e. position static. please me.
use this:
map = new mapfield(){ public void paint(graphics g){ super.paint(g); for(int i=0;i<=_longitude.size()-1;i++){ coordinates coords = getcoordinates(); coords.setlatitude(double.parsedouble((string) _latitude.elementsat(i)); coords.setlongitude(double.parsedouble((string) _longitude.elementsat(i)); convertworldtofield(coords,_xypoint); g.drawbitmap(_xypoint.x,_xypoint.y,_loc.getwidth(),_loc.getheight(),_loc, 0, 0); } }
note: _latitude , _longitude vectors containing respective values , make markers not static.
Comments
Post a Comment