Hi all,
I seem to be having an issue with the GetCurrentExtent javascript function. I'm sure it's just me not knowing how to use it, but could someone give me a few pointers? My map is defined as such:
ID="MainMap" Width="625px" Height="625px" OnClientExtentChanged="OnMapExtentChanged()"
And my OnMapExtentChanged() javascript function is:
function OnMapExtentChanged() {
var Map1 = document.getElementById('<% = MainMap.ClientID %>');
var extent = Map1.GetCurrentExtent();
}
Running this code, however, does not let my map render due to the second line in the function. Any help? Thanks in advance!
-Dustin