Need urgent help with a layer/action/ios issue

  • Please have a look and let me know what could be the cuase or a solution.

    I have a tour with a simple map and I want the map to close at the start of the tour.
    I used the onloaded="closemap()" which works on desktop but on the iPad the map stays opened.

    The code is placed outside the scenes.


    Thank you!

    Oh, and another question, not so important, but how do I trigger the closemap action for this map for example with another plugin or hotspot?
    When I simple use onclick="closemap();" the plugin will perform the sliding action itself.

  • Change action from:

    Code
    <action name="closemap">
            set(onclick, openmap() );
            tween(x,-325);</action>...


    to:

    Code
    <action name="closemap">
            set(layer[map1].onclick, openmap() );
            tween(layer[map1].x,-325);</action>
        <action name="openmap">
            set(layer[map1].onclick, closemap() );
            tween(layer[map1].x,-5);
        </action>
  • Hi,

    I used the onloaded="closemap()" which works on desktop but on the iPad the map stays opened.


    I think the problem here is the 'altonloaded' - there is no closemap() call there as in the normal onloaded event:

    Code
    altonloaded="if(istablet, mul(scale,1.0));"

    try this instead:

    Code
    altonloaded="if(istablet, mul(scale,1.0)); closemap()"

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!