allison_h


Hi,

I am trying to load a map based on a postcode search.

before i can do a find i have to load the map and then do the search and reload it to the correct position on the map.

this causes the map to flash a default location and then jump to the now position on the map.

Is there any way to stop this first unwanted location from appearing

Thanks.

Ali.




Re: prevent map load before search?

wjcyg


Ali:

How about this First, use Javascript to set the visibility of the div you are using to display the map to "hidden", like:

Code Snippet

document.getElementById("panelMap").style.visibility = 'hidden';

Then after you do the load the map and do the search, reset the map div's visibility to 'visible'.

Hope this helps,

Walt