I am trying to get a controller that holds data to route back to the map and show a parcel. is this possible? i have been trying a few different things like an ajax call or map action but no luck.An example would be if a user clicked on a button it would take teh parcel information and route and zoom on the map? If you could provide me with and example or some advice it would be greatly appreciated.
Thanks
Logan Jones
Routing from seperate controller to map
Hi Gordon,
We are sorry to say we don’t know your scenario very clearly, especially what does route mean. Could you please provide us more details about this?
We are guessing what you want is click a button on client and send some parcel data like house number via Ajax call to server, then we found out the feature based on the information of parcel in the controller. Server will return information about this feature to client side and zoom to this feature. The sample samples.thinkgeo.com/MvcEdition/HowDoISamples/SpatialFunctions/FindFeatureClicked/1,AllSamples can be helpful.
Or if the “route” means our Map Suite Routing? Sorry for any inconvenience.
Thanks,
Ok i mean when a user clicks on a button outside of the map controller, it then transfers the user back to the map page with the parcel id and zooms to that parcel. so a spatial function in reverse,
Hi Gordon,
This sample contains how to pass information back and call some functions in server side:
samples.thinkgeo.com/MvcEdition/HowDoISamples/SpatialFunctions/FindFeatureById/1,AllSamples
This sample shows pan map to target coordinate:
samples.thinkgeo.com/MvcEdition/HowDoISamples/ZoomingPanningMoving/PanTheMap/1,ZoomingPanningMoving
Wish that’s helpful.
Regards,
Don