Hi,
I need to use the "Map.HighlightOverlay" but I am finding hard to get it to work… of course the issue is that most samples are View based and not controller based for the map control to be build and also some parameters and or behaviors are a bit different as well. Could you provide a sample on how the "Map.HighlightOverlay" should be loaded with features and customized when the map control has not been defined inside a view?
I do have the exact same need when using the "Map.MarkerOverlay" therefor could you also provide some sample for this issue?
last but not least, I think that the samples for the MVC edition do not provide enough information on how to work with the map control when the map control is not View/razor based! Keeping in mind that there is a good number of limitations when using the View/Razor based setup it could be very good to add more information when using the controller/model based setup?
I want also to specify that it looks like that the controller/model setup provide way much more power and flexibility than View/Razor setup.
thanks for your support.
jm.
HighlightOverlay
JM,
We created a sample for your cases both highlightOverlay and
markerOverlay are defined in controller, please have a check.
Note: we did some changes on MarkerOverlay, So please
waiting several hours to get the latest version(7.0.92.0 or 7.0.0.92) to test.
As for the reason why we didn’t create enough samples where
map defined in the controller, at the first beginning, we got some instructions
from Asp.net Mvc and so we follow those tips to support two choices to define.
In our HowDoI samples, we prefer to define the map rendering code in the view
and put the data accessing actions like operating a database into the
controller.
Actually, all the objects which are defined in the view can
be also used in the controller with another define way. I think we need to do
more investigations about the limitations between the view and controller and
we will take your suggestion into consideration to build more powerful and
flexible samples defined in the controller in the future.
Thanks,
Johnny
DisplayASimpleMapForMvc.zip (255 KB)
Hi,
works!!!
thanks a lot
JM,
You are so welcome. :)
Johnny