amMap support forum

You are not logged in.

Announcement

FORUM CLOSED! This forum is closed. We moved to a new place at Zendesk. Update your bookmarks.

Flash amMap: Help


#1 2012-06-12 04:56:27

qemm
Administrator

Can't reload Data file.

Would you be able to post your whole code or better yet a link to the page?

You can also open browser's network console to see what is being loaded and whether cache is being used. Also check browser's Error console if you have any JavaScript errors there.

As for hiding movies, there's no such feature to hide map objects based on zoom level, I'm afraid. Sorry.

Offline

 

#2 2012-06-13 03:10:32

qemm
Administrator

Re: Can't reload Data file.

Can you open your browser's Error console and see if clicking the input produces any error?

Offline

 

#3 2012-06-15 02:49:55

qemm
Administrator

Re: Can't reload Data file.

Your code looks absolutely OK. I have no idea why it requires doubleclick to load.

For testing purposes, try adding some debug triggers in the reloadData function. I.e.:

Code:

function reloadData(a)
        {           
        console.log('reloadData triggered');
        document.getElementById('ammap').reloadData(a); 
        }

Open browser console. Let's see if the function is being called after first click.

Also, please note that map needs to be fully initialized before it can accept API calls. Are you sure you're not trying to click those buttons while the map is still building itself?

Offline

 

© amMap & amCharts | Forum engine: PunBB