我使用以下代码:
var genres1 = new Ext.data.Store({
reader: new Ext.data.JsonReader({
fields: ['pincode','place_name'],
root: 'rows'
}),
proxy: new Ext.data.HttpProxy({
url: 'pointalong.php',
method: 'GET'
})
});
Run Code Online (Sandbox Code Playgroud)
但我想将3个参数传递给我的php文件.我应该如何处理?以及我如何获得PHP文件.
实际上我正在使用此代码用于弹出示例的GetFeatureInfo现在我想限制弹出窗口中的字段.
<html>
<head>
<title>GetFeatureInfo Popup</title>
<script src="ol/OpenLayers.js"></script>
<link rel="stylesheet" href="ol/theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="ol/examples/style.css" type="text/css" />
<script>
OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";
/*Same as identifier*/
var map, info;
function load() {
map = new OpenLayers.Map({
div: "map",
maxExtent: new OpenLayers.Bounds(143.834,-43.648,148.479,-39.573)
});
var political = new OpenLayers.Layer.WMS("State Boundaries",
"http://localhost:8080/geoserver/wms",
{'layers': 'topp:tasmania_state_boundaries', transparent: true, format: 'image/gif'},
{isBaseLayer: true}
);
var roads = new OpenLayers.Layer.WMS("Roads",
"http://localhost:8080/geoserver/wms",
{'layers': 'topp:tasmania_roads', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
var cities = new OpenLayers.Layer.WMS("Cities",
"http://localhost:8080/geoserver/wms",
{'layers': 'topp:tasmania_cities', transparent: …Run Code Online (Sandbox Code Playgroud)