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?
Code
<action name="dulhotel">
plugin[map].addstylespot(h1,46.783409,-92.096230,0,hotel,false,action(loadplace,The Suites Hotel,duluth/waterfrontsuites),showtext('The Suites Hotel'), shi(duluth/waterfrontsuites), hhi());
plugin[map].addstylespot(h2,46.785751,-92.094383,0,hotel,false,action(loadplace,Canal Park Lodge,duluth/canalparklodge),showtext('Canal Park Lodge'), shi(duluth/canalparklodge), hhi());
plugin[map].addstylespot(h3,46.784309,-92.093620,0,hotel,false,action(loadplace,Hampton Inn,duluth/hamptoninn),showtext('Hampton Inn'), shi(duluth/hamptoninn), hhi());
plugin[map].addstylespot(h4,46.783245,-92.093507,0,hotel,false,action(loadplace,The Inn on Lake Superior,duluth/theinn),showtext('The Inn '), shi(duluth/theinn), hhi());
plugin[map].addstylespot(h5,46.781621,-92.092648,0,hotel,false,action(loadplace,Comfort Suites,duluth/comfortsuites),showtext('Comfort Suites'), shi(duluth/comfortsuites), hhi());
plugin[map].addstylespot(h6,46.777861,-92.092767,0,hotel,false,action(loadplace,The South Pier Inn,duluth/southpierinn),showtext('The South Pier Inn'), shi(duluth/southpierinn), hhi());
plugin[map].addstylespot(h7,46.785015,-92.102013,0,hotel,false,action(loadplace,Holiday Inn,duluth/hi/hotel),showtext('The Holiday Inn'), shi(duluth/hi), hhi());
plugin[map].addstylespot(h8,46.719417,-92.218466,0,hotel,false,action(loadplace,Mountain Villas,duluth/mountainvillas),showtext('Mountain Villas'), shi(duluth/mountainvillas), hhi());
set(hotelcount, 7);
plugin[map].updatespots();
</action>
<action name="remdulhotel">
plugin[map].removespot(h1); plugin[map].removespot(h2); plugin[map].removespot(h3); plugin[map].removespot(h4);
plugin[map].removespot(h5); plugin[map].removespot(h6); plugin[map].removespot(h7); plugin[map].removespot(h8);
plugin[map].updatespots();
</action>
Display More