svn commit: r817 - trunk/mapbender/http/javascripts/map.php
christoph at osgeo.org
christoph at osgeo.org
Tue Nov 14 06:07:08 EST 2006
Author: christoph
Date: 2006-11-14 11:07:08+0000
New Revision: 817
Modified:
trunk/mapbender/http/javascripts/map.php
Log:
added register wfs subfunctions and basic ajax function
Modified: trunk/mapbender/http/javascripts/map.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/map.php?view=diff&rev=817&p1=trunk/mapbender/http/javascripts/map.php&p2=trunk/mapbender/http/javascripts/map.php&r1=816&r2=817
==============================================================================
--- trunk/mapbender/http/javascripts/map.php (original)
+++ trunk/mapbender/http/javascripts/map.php 2006-11-14 11:07:08+0000
@@ -49,6 +49,7 @@
var mb_log = null;
var mb_MapRequestSubFunctions = new Array();
+var mb_WfsRequestSubFunctions = new Array();
var mb_MapRequestPreFunctions = new Array();
var mb_FeatureInfoPreFunctions = new Array();
var mb_PanSubElements = new Array();
@@ -71,8 +72,15 @@
mb_trans.src = "../img/transparent.gif";
/*END OF GLOBALS*/
-
-
+function mb_ajax_get(url, param, callback) {
+ try {
+ mb_ajaxWrap_get(url, param, callback);
+ }
+ catch(e) {
+ alert(e);
+ }
+}
+
function init(){
for(var i=0; i<mb_InitFunctions.length; i++){
eval(mb_InitFunctions[i]);
@@ -98,6 +106,9 @@
function mb_registerSubFunctions(stringFunction){
mb_MapRequestSubFunctions[mb_MapRequestSubFunctions.length] = stringFunction;
}
+function mb_registerWfsSubFunctions(stringFunction){
+ mb_WfsRequestSubFunctions[mb_WfsRequestSubFunctions.length] = stringFunction;
+}
function mb_registerMapObj(frameName, elementName,wms_index,width, height){
mb_mapObj[mb_mapObj.length] = new mb_mapObj_const(frameName, elementName, width, height, wms_index);
}
@@ -126,6 +137,15 @@
}
}
+function deleteWmsObject() {
+ wms = new Array();
+ wms_layer_count = 0;
+}
+
+function deleteMapObj() {
+ mb_mapObj = new Array();
+}
+
function cloneObject(a){
var z = new Array();
@@ -137,16 +157,10 @@
return z;
}
-function deleteWmsObject() {
- wms = new Array();
- wms_layer_count = 0;
-}
+function mb_mapObj_const(frameName, elementName, width, height, wms_index){
+
-function deleteMapObj() {
- mb_mapObj = new Array();
-}
-function mb_mapObj_const(frameName, elementName, width, height, wms_index){
this.width = width;
this.height = height;
this.frameName = frameName;
@@ -1268,6 +1282,12 @@
}
}
+function mb_execWfsSubFunctions(geom) {
+ for(var i=0; i<mb_WfsRequestSubFunctions.length; i++){
+ mb_WfsRequestSubFunctions[i](geom);
+ }
+}
+
function mb_getConjunctionCharacter(onlineresource){
if(onlineresource.indexOf("?") > -1){
if(onlineresource.charAt(onlineresource.length-1) == "?"){
More information about the Mapbender_commits
mailing list