dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #10106
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2763: (GIS) Map view name uniqueness removed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 2763 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-01-26 12:55:26 +0100
message:
(GIS) Map view name uniqueness removed.
removed:
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddOrUpdateMapViewAction.java
added:
dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddMapViewAction.java
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MappingService.java
dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/DefaultMappingService.java
dhis-2/dhis-web/dhis-web-mapping/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MappingService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MappingService.java 2011-01-26 00:07:38 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/mapping/MappingService.java 2011-01-26 11:42:12 +0000
@@ -126,16 +126,16 @@
// -------------------------------------------------------------------------
int addMapView( MapView mapView );
-
- void updateMapView( MapView mapView );
-
- void addOrUpdateMapView( String name, boolean system, String featureType, String mapValueType, Integer indicatorGroupId,
+
+ void addMapView( String name, boolean system, String featureType, String mapValueType, Integer indicatorGroupId,
Integer indicatorId, Integer dataElementGroupId, Integer dataElementId, String periodTypeName,
Integer periodId, String startDate, String endDate, Integer parentOrganisationUnitId,
- Integer organisationUnitLevelId, String mapLegendType, Integer method, Integer classes, String bounds,
+ Integer organisationUnitLevel, String mapLegendType, Integer method, Integer classes, String bounds,
String colorLow, String colorHigh, Integer mapLegendSetId, Integer radiusLow, Integer radiusHigh,
String longitude, String latitude, int zoom );
+ void updateMapView( MapView mapView );
+
void deleteMapView( MapView view );
MapView getMapView( int id );
=== modified file 'dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/DefaultMappingService.java'
--- dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/DefaultMappingService.java 2011-01-26 00:07:38 +0000
+++ dhis-2/dhis-services/dhis-service-mapping/src/main/java/org/hisp/dhis/mapping/DefaultMappingService.java 2011-01-26 11:42:12 +0000
@@ -467,13 +467,8 @@
{
return mappingStore.addMapView( mapView );
}
-
- public void updateMapView( MapView mapView )
- {
- mappingStore.updateMapView( mapView );
- }
-
- public void addOrUpdateMapView( String name, boolean system, String featureType, String mapValueType, Integer indicatorGroupId,
+
+ public void addMapView( String name, boolean system, String featureType, String mapValueType, Integer indicatorGroupId,
Integer indicatorId, Integer dataElementGroupId, Integer dataElementId, String periodTypeName,
Integer periodId, String startDate, String endDate, Integer parentOrganisationUnitId,
Integer organisationUnitLevel, String mapLegendType, Integer method, Integer classes, String bounds,
@@ -513,49 +508,15 @@
OrganisationUnitLevel level = organisationUnitService.getOrganisationUnitLevelByLevel( organisationUnitLevel );
MapLegendSet mapLegendSet = mapLegendSetId != null ? getMapLegendSet( mapLegendSetId ) : null;
-
- MapView mapView = mappingStore.getMapViewByName( name );
-
- if ( mapView != null )
- {
- mapView.setName( name );
- mapView.setUser( user );
- mapView.setFeatureType( featureType );
- mapView.setMapValueType( mapValueType );
- mapView.setIndicatorGroup( indicatorGroup );
- mapView.setIndicator( indicator );
- mapView.setDataElementGroup( dataElementGroup );
- mapView.setDataElement( dataElement );
- mapView.setMapDateType( mapDateType );
- mapView.setPeriodType( periodType );
- mapView.setPeriod( period );
- mapView.setStartDate( startDate );
- mapView.setEndDate( endDate );
- mapView.setParentOrganisationUnit( parent );
- mapView.setOrganisationUnitLevel( level );
- mapView.setMapLegendType( mapLegendType );
- mapView.setMethod( method );
- mapView.setClasses( classes );
- mapView.setBounds( bounds );
- mapView.setColorLow( colorLow );
- mapView.setColorHigh( colorHigh );
- mapView.setMapLegendSet( mapLegendSet );
- mapView.setRadiusLow( radiusLow );
- mapView.setRadiusHigh( radiusHigh );
- mapView.setLongitude( longitude );
- mapView.setLatitude( latitude );
- mapView.setZoom( zoom );
-
- updateMapView( mapView );
- }
- else
- {
- mapView = new MapView( name, user, featureType, mapValueType, indicatorGroup, indicator, dataElementGroup,
- dataElement, mapDateType, periodType, period, startDate, endDate, parent, level, mapLegendType, method,
- classes, bounds, colorLow, colorHigh, mapLegendSet, radiusLow, radiusHigh, longitude, latitude, zoom );
-
- addMapView( mapView );
- }
+
+ addMapView( new MapView( name, user, featureType, mapValueType, indicatorGroup, indicator, dataElementGroup,
+ dataElement, mapDateType, periodType, period, startDate, endDate, parent, level, mapLegendType, method,
+ classes, bounds, colorLow, colorHigh, mapLegendSet, radiusLow, radiusHigh, longitude, latitude, zoom ) );
+ }
+
+ public void updateMapView( MapView mapView )
+ {
+ mappingStore.updateMapView( mapView );
}
public void deleteMapView( MapView view )
=== added file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddMapViewAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddMapViewAction.java 1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddMapViewAction.java 2011-01-26 11:42:12 +0000
@@ -0,0 +1,252 @@
+package org.hisp.dhis.mapping.action;
+
+/*
+ * Copyright (c) 2004-2010, University of Oslo
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * * Neither the name of the HISP project nor the names of its contributors may
+ * be used to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+import org.hisp.dhis.mapping.MappingService;
+
+import com.opensymphony.xwork2.Action;
+
+/**
+ * @author Jan Henrik Overland
+ * @version $Id$
+ */
+public class AddMapViewAction
+ implements Action
+{
+ // -------------------------------------------------------------------------
+ // Dependencies
+ // -------------------------------------------------------------------------
+
+ private MappingService mappingService;
+
+ public void setMappingService( MappingService mappingService )
+ {
+ this.mappingService = mappingService;
+ }
+
+ // -------------------------------------------------------------------------
+ // Input
+ // -------------------------------------------------------------------------
+
+ private String name;
+
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+ private boolean system;
+
+ public void setSystem( boolean system )
+ {
+ this.system = system;
+ }
+
+ private String featureType;
+
+ public void setFeatureType( String featureType )
+ {
+ this.featureType = featureType;
+ }
+
+ private String mapValueType;
+
+ public void setMapValueType( String mapValueType )
+ {
+ this.mapValueType = mapValueType;
+ }
+
+ private Integer indicatorGroupId;
+
+ public void setIndicatorGroupId( Integer indicatorGroupId )
+ {
+ this.indicatorGroupId = indicatorGroupId;
+ }
+
+ private Integer indicatorId;
+
+ public void setIndicatorId( Integer indicatorId )
+ {
+ this.indicatorId = indicatorId;
+ }
+
+ private Integer dataElementGroupId;
+
+ public void setDataElementGroupId( Integer dataElementGroupId )
+ {
+ this.dataElementGroupId = dataElementGroupId;
+ }
+
+ private Integer dataElementId;
+
+ public void setDataElementId( Integer dataElementId )
+ {
+ this.dataElementId = dataElementId;
+ }
+
+ private String periodTypeId;
+
+ public void setPeriodTypeId( String periodTypeId )
+ {
+ this.periodTypeId = periodTypeId;
+ }
+
+ private Integer periodId;
+
+ public void setPeriodId( Integer periodId )
+ {
+ this.periodId = periodId;
+ }
+
+ private String startDate;
+
+ public void setStartDate( String startDate )
+ {
+ this.startDate = startDate;
+ }
+
+ private String endDate;
+
+ public void setEndDate( String endDate )
+ {
+ this.endDate = endDate;
+ }
+
+ private Integer parentOrganisationUnitId;
+
+ public void setParentOrganisationUnitId( Integer parentOrganisationUnitId )
+ {
+ this.parentOrganisationUnitId = parentOrganisationUnitId;
+ }
+
+ private Integer organisationUnitLevel;
+
+ public void setOrganisationUnitLevel( Integer organisationUnitLevel )
+ {
+ this.organisationUnitLevel = organisationUnitLevel;
+ }
+
+ private String mapLegendType;
+
+ public void setMapLegendType( String mapLegendType )
+ {
+ this.mapLegendType = mapLegendType;
+ }
+
+ private Integer method;
+
+ public void setMethod( Integer method )
+ {
+ this.method = method;
+ }
+
+ private Integer classes;
+
+ public void setClasses( Integer classes )
+ {
+ this.classes = classes;
+ }
+
+ private String bounds;
+
+ public void setBounds( String bounds )
+ {
+ this.bounds = bounds;
+ }
+
+ private String colorLow;
+
+ public void setColorLow( String colorLow )
+ {
+ this.colorLow = colorLow;
+ }
+
+ private String colorHigh;
+
+ public void setColorHigh( String colorHigh )
+ {
+ this.colorHigh = colorHigh;
+ }
+
+ private Integer mapLegendSetId;
+
+ public void setMapLegendSetId( Integer mapLegendSetId )
+ {
+ this.mapLegendSetId = mapLegendSetId;
+ }
+
+ private Integer radiusLow;
+
+ public void setRadiusLow( Integer radiusLow )
+ {
+ this.radiusLow = radiusLow;
+ }
+
+ private Integer radiusHigh;
+
+ public void setRadiusHigh( Integer radiusHigh )
+ {
+ this.radiusHigh = radiusHigh;
+ }
+
+ private String longitude;
+
+ public void setLongitude( String longitude )
+ {
+ this.longitude = longitude;
+ }
+
+ private String latitude;
+
+ public void setLatitude( String latitude )
+ {
+ this.latitude = latitude;
+ }
+
+ private int zoom;
+
+ public void setZoom( int zoom )
+ {
+ this.zoom = zoom;
+ }
+
+ // -------------------------------------------------------------------------
+ // Action implementation
+ // -------------------------------------------------------------------------
+
+ public String execute()
+ throws Exception
+ {
+ mappingService.addMapView( name, system, featureType, mapValueType, indicatorGroupId, indicatorId,
+ dataElementGroupId, dataElementId, periodTypeId, periodId, startDate, endDate, parentOrganisationUnitId,
+ organisationUnitLevel, mapLegendType, method, classes, bounds, colorLow, colorHigh, mapLegendSetId,
+ radiusLow, radiusHigh, longitude, latitude, zoom );
+
+ return SUCCESS;
+ }
+}
\ No newline at end of file
=== removed file 'dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddOrUpdateMapViewAction.java'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddOrUpdateMapViewAction.java 2011-01-26 00:07:38 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/java/org/hisp/dhis/mapping/action/AddOrUpdateMapViewAction.java 1970-01-01 00:00:00 +0000
@@ -1,252 +0,0 @@
-package org.hisp.dhis.mapping.action;
-
-/*
- * Copyright (c) 2004-2010, University of Oslo
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * * Neither the name of the HISP project nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-import org.hisp.dhis.mapping.MappingService;
-
-import com.opensymphony.xwork2.Action;
-
-/**
- * @author Jan Henrik Overland
- * @version $Id$
- */
-public class AddOrUpdateMapViewAction
- implements Action
-{
- // -------------------------------------------------------------------------
- // Dependencies
- // -------------------------------------------------------------------------
-
- private MappingService mappingService;
-
- public void setMappingService( MappingService mappingService )
- {
- this.mappingService = mappingService;
- }
-
- // -------------------------------------------------------------------------
- // Input
- // -------------------------------------------------------------------------
-
- private String name;
-
- public void setName( String name )
- {
- this.name = name;
- }
-
- private boolean system;
-
- public void setSystem( boolean system )
- {
- this.system = system;
- }
-
- private String featureType;
-
- public void setFeatureType( String featureType )
- {
- this.featureType = featureType;
- }
-
- private String mapValueType;
-
- public void setMapValueType( String mapValueType )
- {
- this.mapValueType = mapValueType;
- }
-
- private Integer indicatorGroupId;
-
- public void setIndicatorGroupId( Integer indicatorGroupId )
- {
- this.indicatorGroupId = indicatorGroupId;
- }
-
- private Integer indicatorId;
-
- public void setIndicatorId( Integer indicatorId )
- {
- this.indicatorId = indicatorId;
- }
-
- private Integer dataElementGroupId;
-
- public void setDataElementGroupId( Integer dataElementGroupId )
- {
- this.dataElementGroupId = dataElementGroupId;
- }
-
- private Integer dataElementId;
-
- public void setDataElementId( Integer dataElementId )
- {
- this.dataElementId = dataElementId;
- }
-
- private String periodTypeId;
-
- public void setPeriodTypeId( String periodTypeId )
- {
- this.periodTypeId = periodTypeId;
- }
-
- private Integer periodId;
-
- public void setPeriodId( Integer periodId )
- {
- this.periodId = periodId;
- }
-
- private String startDate;
-
- public void setStartDate( String startDate )
- {
- this.startDate = startDate;
- }
-
- private String endDate;
-
- public void setEndDate( String endDate )
- {
- this.endDate = endDate;
- }
-
- private Integer parentOrganisationUnitId;
-
- public void setParentOrganisationUnitId( Integer parentOrganisationUnitId )
- {
- this.parentOrganisationUnitId = parentOrganisationUnitId;
- }
-
- private Integer organisationUnitLevel;
-
- public void setOrganisationUnitLevel( Integer organisationUnitLevel )
- {
- this.organisationUnitLevel = organisationUnitLevel;
- }
-
- private String mapLegendType;
-
- public void setMapLegendType( String mapLegendType )
- {
- this.mapLegendType = mapLegendType;
- }
-
- private Integer method;
-
- public void setMethod( Integer method )
- {
- this.method = method;
- }
-
- private Integer classes;
-
- public void setClasses( Integer classes )
- {
- this.classes = classes;
- }
-
- private String bounds;
-
- public void setBounds( String bounds )
- {
- this.bounds = bounds;
- }
-
- private String colorLow;
-
- public void setColorLow( String colorLow )
- {
- this.colorLow = colorLow;
- }
-
- private String colorHigh;
-
- public void setColorHigh( String colorHigh )
- {
- this.colorHigh = colorHigh;
- }
-
- private Integer mapLegendSetId;
-
- public void setMapLegendSetId( Integer mapLegendSetId )
- {
- this.mapLegendSetId = mapLegendSetId;
- }
-
- private Integer radiusLow;
-
- public void setRadiusLow( Integer radiusLow )
- {
- this.radiusLow = radiusLow;
- }
-
- private Integer radiusHigh;
-
- public void setRadiusHigh( Integer radiusHigh )
- {
- this.radiusHigh = radiusHigh;
- }
-
- private String longitude;
-
- public void setLongitude( String longitude )
- {
- this.longitude = longitude;
- }
-
- private String latitude;
-
- public void setLatitude( String latitude )
- {
- this.latitude = latitude;
- }
-
- private int zoom;
-
- public void setZoom( int zoom )
- {
- this.zoom = zoom;
- }
-
- // -------------------------------------------------------------------------
- // Action implementation
- // -------------------------------------------------------------------------
-
- public String execute()
- throws Exception
- {
- mappingService.addOrUpdateMapView( name, system, featureType, mapValueType, indicatorGroupId, indicatorId,
- dataElementGroupId, dataElementId, periodTypeId, periodId, startDate, endDate, parentOrganisationUnitId,
- organisationUnitLevel, mapLegendType, method, classes, bounds, colorLow, colorHigh, mapLegendSetId,
- radiusLow, radiusHigh, longitude, latitude, zoom );
-
- return SUCCESS;
- }
-}
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/resources/META-INF/dhis/beans.xml 2011-01-11 09:59:19 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/resources/META-INF/dhis/beans.xml 2011-01-26 11:42:12 +0000
@@ -157,11 +157,11 @@
</bean>
<!-- MapView -->
-
- <bean id="org.hisp.dhis.mapping.action.AddOrUpdateMapViewAction"
- class="org.hisp.dhis.mapping.action.AddOrUpdateMapViewAction" scope="prototype">
- <property name="mappingService" ref="org.hisp.dhis.mapping.MappingService" />
- </bean>
+
+ <bean id="org.hisp.dhis.mapping.action.AddMapViewAction"
+ class="org.hisp.dhis.mapping.action.AddMapViewAction" scope="prototype">
+ <property name="mappingService" ref="org.hisp.dhis.mapping.MappingService" />
+ </bean>
<bean id="org.hisp.dhis.mapping.action.DeleteMapViewAction" class="org.hisp.dhis.mapping.action.DeleteMapViewAction"
scope="prototype">
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml 2011-01-26 10:26:19 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml 2011-01-26 11:42:12 +0000
@@ -174,11 +174,11 @@
<!-- MapView -->
- <action name="addOrUpdateMapView"
- class="org.hisp.dhis.mapping.action.AddOrUpdateMapViewAction">
- <result name="success" type="velocity-json">/dhis-web-mapping/void.vm
- </result>
- </action>
+ <action name="addMapView"
+ class="org.hisp.dhis.mapping.action.AddMapViewAction">
+ <result name="success" type="velocity-json">/dhis-web-mapping/void.vm
+ </result>
+ </action>
<action name="deleteMapView" class="org.hisp.dhis.mapping.action.DeleteMapViewAction">
<result name="success" type="velocity-json">/dhis-web-mapping/void.vm
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2011-01-26 10:56:54 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2011-01-26 11:42:12 +0000
@@ -496,16 +496,11 @@
params = symbol.formValues.getAllValues.call(symbol);
}
- if (G.stores.mapView.findExact('name', vn) !== -1) {
- Ext.message.msg(false, G.i18n.there_is_already_a_map_view_called + ' <span class="x-msg-hl">' + vn + '</span>');
- return;
- }
-
params.name = vn;
params.system = Ext.getCmp('favoritesystem_chb').getValue();
Ext.Ajax.request({
- url: G.conf.path_mapping + 'addOrUpdateMapView' + G.conf.type,
+ url: G.conf.path_mapping + 'addMapView' + G.conf.type,
method: 'POST',
params: params,
success: function(r) {