Hello!
I have a problem duplicating the DrawEditShapes demo.
When I try to setup the DynamicOverlay like in the demo, after loading or at least after resizing the page with the map, the map appears as a light-red surface and a graphical X (like an error symbol) appears in the left/top corner. Attached is my .cshtml code. Once I comment out the "overlays.LayerOverlay(“DynamicOverlay”). … " line, the map shows up ok.
Any idea what’s wrong?
Thanks
Karsten
MapPartialView.zip (897 Bytes)
InMemoryFeatureLayer screws map
Hi Karsten,
That should because the InMemoryFeatureLayer haven’t been render succeed. But I don’t think it’s an issue, because I tested with your code and haven’t reproduce that succeed.
Please see attached screen shot.
Your InMemoryFeatureLayer haven’t added any shape and it don’t related with any data source, so that should caused by the environment, could you please clear browser or any cache, rebuild solution and try that again? Or if you can find the other machine, please test that for make sure that caused by environment setting.
Any news about that please let me know.
Regards,
Don
Hi Don,
thanks!
Again, I found that this problem was caused by this attribute that I had assigned to my Controller class:
[SessionState(SessionStateBehavior.ReadOnly)]
So the problem is solved.
Karsten
Hi Karsten,
I am glad to hear you solved that.
Any question please let us know.
Regards,
Don