Is there anything in the architecture of the MapSuite for MVC that would prevent wrapping the javascript API in AngularJS?
Specifically what is the recommended way to work with the state that is created and loaded in Map.SaveState and Map.LoadState?
Is using the API strictly from javascript and the client a supported scenario, or does the toolkit require the control be ‘rendered’ by the server initially to populate the Session?
AngularJS support
Hi Jeremy,
I think our architecture should be friendly with AngularJS, because our development ever worked with some Professional service project which AngularJS is used. But we don’t have more experience on how to make AngularJS work well with MVC edition, because that project choose Jquery instead of AngularJS at last.
For your 2nd question, I am sorry I am not very sure about what’s the toolkit point to, does that meant MVC or AngularJS?
Regards,
Don
Good morning Don -
Thanks for the mention about your professional service folks having potentially used angular. Would you mind putting me in touch with one of them to discuss the approach they used?
Is there an approach to using jQuery that is recommended for single-page-applications? If so is it documented anywhere.
My second question was about using the client-side javascript API that creates and initializes the map on the page.
Essentially the content of ThinkGeo.MapSuite.MvcEdition.Map.Render that is emitted on the page. I can reverse engineer this, but would be happier if there was a well documented and supported method to do this.
At this point, I’m just adding an attribute to the Map class so that I can add an AngularJS behavior.
Morning Jeremy,
I am sorry the guy who ever work for AngularJS is in vacation now.
But I think JQuery is so popular and you should can find many useful information.
About your second question, I have asked our developer. For make client not so heavy, we did some optimize, and we won’t have a documentation for that.
But the mainly logic is, we find the map div by its client ID and find the JSON, then we create map via call JS function CreateAllMaps.
Wish that’s helpful for you.
Regards,
Don