I am trying to load a shapefile or multiple shapefiles, when a user clicks on the map.
The ajax call im using is
function mapClick(e) {
var olMap = Map1.getOpenLayersMap();
Map1.ajaxCallAction(‘Index’, ‘GetCountyName’, { x: e.worldXY.lon, y: e.worldXY.lat }, function (result) {
var contentHtml = result.get_responseData().toString();
Map1.redrawLayer(“KS Counties”);
Map1.redrawLayer(“County Name”);
Map1.redrawLayer(“Map1”);
Map1.redrawLayer(“Ness 911 Addresses”);
Map1.redrawLayer(“Ness Roads”);
});
}
but when the Function GetCountyName gets done executing it doesn’t send anything back?
Any Thoughts or Ideas Would be Greatly appreciated
On Client Click
Hi Gordon,
Does the ajax call access to the GetCountyName action in your server side? Based on your current codes, I don’t have any insights, and in order to have a further look, I think you can attach some codes about your GetCountyName action or a concrete sample is better.
Thanks,
Troy