Retrieving data with getFeatureInformation from a shapefile

المشرف العام

Administrator
طاقم الإدارة
I checked on this site Heron Map Examples, I found very exciting apps then tried a couple of them out locally on my computer. What I did is I copied all the source code then arranged links properly, the only problem I'm facing is to get the getFeatureInformation working.It only says "No Feature Found". I'm asking for advice on how to fix this. I believe the code that does that is this the one below, even though I don't know what's missing or what I should add.

toolbar: [ {type: "featureinfo", options: { popupWindow: { width: 360, height: 200, featureInfoPanel: { showTopToolbar: true, displayPanels: ['Table','Details'], // Should column-names be capitalized?Default true. columnCapitalize: true, // Export to download file. Option values are 'CSV', 'XLS',default is no export (results in no export menu).exportFormats: ['CSV', 'XLS','GMLv2','Shapefile','GeoJSON','WellKnownText'],// Export to download file. Option values are 'CSV', 'XLS', default is noexport (results in no export menu). exportFormats: ['CSV', 'XLS'], maxFeatures: 10 } } }}, {type: "-"} , {type: "pan"}, {type: "zoomin"}, {type: "zoomout"}, {type: "zoomvisible"}, {type: "-"} , {type: "zoomprevious"}, {type: "zoomnext"}, {type: "-"}, {type: "measurelength", options: {geodesic: true}}, {type: "measurearea", options: {geodesic: true}} ]

أكثر...
 
أعلى