[Mapbender-commits] r1951 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jan 4 11:35:54 EST 2008
Author: christoph
Date: 2008-01-04 11:35:54 -0500 (Fri, 04 Jan 2008)
New Revision: 1951
Modified:
trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
now supports kml loading
Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php 2008-01-04 16:33:40 UTC (rev 1950)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php 2008-01-04 16:35:54 UTC (rev 1951)
@@ -106,7 +106,9 @@
function appendGeometryArrayFromKML () {
try {
parent.kmlHasLoaded.register(function(properties){
- d = parent.geoJsonToGeometryArray(properties);
+ d = new parent.GeometryArray();
+ d.importGeoJSON(properties);
+// d = parent.geoJsonToGeometryArray(properties);
executeDigitizeSubFunctions();
});
}
@@ -403,7 +405,7 @@
parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].checkDigitizeTag()");
parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].initialiseSnapping()");
parent.mb_registerL10nFunctions("window.frames['"+ mod_digitize_elName + "'].getMessages()");
-// parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].appendGeometryArrayFromKML()");
+ parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].appendGeometryArrayFromKML()");
if (!nonTransactionalEditable) {
parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].initialiseHighlight()");
}
More information about the Mapbender_commits
mailing list