We are looking into rewriting our existing mapping application that uses MVC Edition and we are considering switching over to the WebAPI Edition. We dynamically load several InMemoryFeatureLayers based on queried database tables. This data can be modified by the user at anytime and the layers will vary as the user changes from customer to another. With the MVC Edition we have the benefit of loading all of our layers to the ThinkGeo.MapSuite.Mvc.Map. This works well as all the tile generation requests are handled via the thinkgeo openlayers javascript. The additional benefit is that the database is queried once to load the layer and it is not necessary to “requery” the data for each tile generated for the layer. If the user modifies any of the data associated to the layer or switches to another customer we simply reload the layers on to the Map and refresh the map in the UI with the updated data. None of this requires any custom caching of data, layers, or tiles.
My question is does this concept exist in the WebAPI edition or is there a way to implement it?
I downloaded your Hello World example (https://github.com/ThinkGeo/HelloWorldSample-ForWebApi) and even this simple example reloads the State shape file for every tile request made by the Leaflet API to the GetTile method in the HellowWorldController. Hopefully I am just missing a concept in WebAPI.
Thanks
Greg