[Mapbender-users] How to refer to an external php from FeatureInfo in Mapbender3
Astrid Emde
astrid.emde at wheregroup.com
Tue Nov 12 06:59:14 PST 2013
Hello,
some Mapbender user redirect to a php script from feature info.
With Mapbender3 you can solve this like this:
1) MapServer WMS: refer to a template in the layer section
TEMPLATE './template/my_layer.html'
2) Content of my_layer.html
(function() {
var selParcel = "[gml_id]";
var link = "http://localhost/mapbender3/web/info/alkis/myscript.php?gkz=xxx&gmlid=" + encodeURI(selParcel);
window.open(link,'','left=0,top=20,width=600,height=800,resizable=yes,menubar=no,toolbar=no,location=no,status=no,scrollbar=yes');
})();
3) place the php script in the directory
mapbender3/web/info
--
Best regards
Astrid Emde
GIS-Consultant
********************************************
Where2B Konferenz 2013
12. Dezember 2013 in Bonn
www.where2b-conference.com
********************************************
Astrid Emde
WhereGroup GmbH & Co.KG
Eifelstraße 7
53119 Bonn
Germany
Fon: +49(0)228 90 90 38 - 19
Fax: +49(0)228 90 90 38 - 11
astrid.emde at wheregroup.com
www.wheregroup.com
Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com
Amtsgericht Bonn, HRA 6788
-------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
-------------------------------
pgp-public key:
http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
Signed and/or encrypted mail is highly appreciated
More information about the Mapbender_users
mailing list