barryhunter / geocubes-api

Automatically exported from code.google.com/p/geocubes-api
0 stars 0 forks source link

check if image attr. of GIcon class is undefined #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
call something like this:

gc = new gcGrid(map, "xxx");

var iconSingle         = new GIcon();
iconSingle.iconSize    = new GSize(21, 24);
iconSingle.infoWindowAnchor = new GPoint(7, 25);
iconSingle.iconAnchor  = new GPoint(6, 25);

gc.setIcon(GC_IC_POINT, iconSingle);

gc.setCallback(GC_CB_ONCREATEPOINT, function (marker, ti, ft, f1, f2) {
if (f1) marker.setImage("xxx"+f1+".png");
});             

iconSingle has no ".image" attribute. Google will call something like
"http://url/undefined" in this case. May have undesirable consequences.
(cookie reset, session overwrite)

Original issue reported on code.google.com by rk...@skilldeal.com on 1 Jul 2009 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by rk...@skilldeal.com on 1 Jul 2009 at 10:33

GoogleCodeExporter commented 9 years ago
Best deals, Best  deals in city,Fandoo deal ,Cheap deals ,Online  deals ,Great 
deals, Shopping online,                                                   Deals 
of the day, Discount internet  shopping.  

Original comment by manjarip...@gmail.com on 30 Jul 2011 at 8:06