a better way to remove spots

  • there has to be a better way to remove map spots using the new googlemaps. i have to remove each spot individually. think there is a way to remove all the spots based off the spot styles? this has all the spots being created with the spot style "hotel" how can i remove all "hotel" spots with 1 action?

  • sorry, for digging out this old thread again.

    the code for removing the spots like postet above works like a charme.

    but how do i bring the "hotel" spots back again? simply chaning "removespot" to "addspot" doesn't seem to work here - so i guess there's something missing *confused*

    can anyone help me with the right code here?

  • Ya,
    I want to know too to add map spot with defined style

    because using : addstylespot(name, lat, lng, heading, style, active, onclick, onhover, onover, onout) not works as expected

    Code
    for(set(i,0), i LT plugin[map].spot.count, inc(i),
      if(plugin[map].spot[get(i)].style == hotel,
    	plugin[map].addstylespot(get(plugin[map].spot[get(i)].name),,,,,,,,);
    	
      );
    );

    i tried also to set up all attributes , but without success :

    so what's the trick ?

    Thanks

    Z *smile*

    Edited 2 times, last by zadda (February 20, 2013 at 9:50 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!