#138 WIP NETGIS Map client
* adds functionality for address search widget
* drops default proxy.php (replaced by own python call)
* reduces maxZoom in config.json
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
"projection": "EPSG:25832",
|
||||
"center": [ 385000, 5543000 ],
|
||||
"minZoom": 5,
|
||||
"maxZoom": 25,
|
||||
"maxZoom": 21,
|
||||
"zoom": 8,
|
||||
"attribution": "LANIS RLP"
|
||||
},
|
||||
@@ -46,6 +46,6 @@
|
||||
|
||||
"search":
|
||||
{
|
||||
"url": "./proxy.php?https://www.geoportal.rlp.de/mapbender/geoportal/gaz_geom_mobile.php?outputFormat=json&resultTarget=web&searchEPSG={epsg}&maxResults=5&maxRows=5&featureClass=P&style=full&searchText={q}&name_startsWith={q}"
|
||||
"url": "/client/proxy?https://www.geoportal.rlp.de/mapbender/geoportal/gaz_geom_mobile.php?outputFormat=json&resultTarget=web&searchEPSG={epsg}&maxResults=5&maxRows=5&featureClass=P&style=full&searchText={q}&name_startsWith={q}"
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
//$query = urldecode( $_GET[ "q" ] );
|
||||
$query = urldecode( $_SERVER[ "QUERY_STRING" ] );
|
||||
|
||||
// Open the Curl session
|
||||
$session = curl_init( $query );
|
||||
|
||||
// Don't return HTTP headers. Do return the contents of the call
|
||||
curl_setopt( $session, CURLOPT_HEADER, false );
|
||||
curl_setopt( $session, CURLOPT_RETURNTRANSFER, true );
|
||||
|
||||
// Make the call
|
||||
$response = curl_exec( $session );
|
||||
|
||||
// Output
|
||||
header( "Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept" );
|
||||
header( "Access-Control-Allow-Origin: *" );
|
||||
header( "Content-Type: application/json" );
|
||||
echo $response;
|
||||
|
||||
curl_close( $session );
|
||||
Reference in New Issue
Block a user