i would like to get the current extent of the map, when map zooms.
At the server side, that extent always stays the same? Is there any settings of the map I need to set? or any event I need to catch?
Any [MapActionFilter] action should carry the current status of map to the server side?
Thanks,
Guangming
Map.currentextent does not change when map zooms?
Hi guanming,
About current extent event, we have a sample named: ExtentChanged Event
Please view our HowDoISample, I think that will be helpful.
Regards,
Don
I figured it out: that action parameter Map does not take a lot of map information including the current extent. You have to get the extent in the client side map.getExtent() and pass it to the action as a parameter.
It is kind of weird? what you have in the action default parameter map? I know it has all layers info. why not extent, scale, … some basic ones?
Hi guangming,
Thanks for your notification, I guess it should be a missing
in MvcEdition, we did do the synchronization of these stuffs, but the code is
in the MapEntityModelBinder, seems like there isn’t any relationship with
AjaxCallAction, I have entered it into our internal issue training system, and
we will work on it when get any time in near future. Any progress I will update
it here.
Thanks,
Johnny