hi again,
i thought i create an own thread for this (although i've posted my inital question here http://www.krpano.com/forum/wbb/inde…d&threadID=5475 in an "old" thread). i thought it might be the wrong thread headline. so here we go:
removing map spots with a specific spotstyle isn't the problem and works fine with the code from the above thread:
<action name="remove_hotel">
for(set(i,0), i LT plugin[map].spot.count, inc(i),
if(plugin[map].spot[get(i)].style == hotel,
plugin[map].removespot(get(plugin[map].spot[get(i)].name));
dec(i);
);
);
</action>
until now the only way (i found) to add spots back again is via the addspot(...,...,....) command:
with more than 150 mapspots (divided via spotstyles into different categories) it would be an enourmous task to code to "bring back" just spots with the style "hotel" or "public". the defined spots are already here with their properties - so way code this all again with the addspot command?
is there any way to code this more elegant and effective like the removespot action above? just like the "remove action" just the other way around?
another thing that would be nice with the spots would be a "scale" and "visible" subnode - so maybe thats a feature request here. (i know that "scale" can be defined via styles)
EDIT: oops, in the german maps section. maybe someone can move this thread to the english section. thanks
cheers