dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #02055
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 683: (GIS) Left-clicking an organisation unit in thematic map will pan it's location to the center of ...
------------------------------------------------------------
revno: 683
committer: Jan Henrik Overland janhenrik.overland@xxxxxxxxx
branch nick: trunk
timestamp: Sat 2009-09-12 02:12:38 +0700
message:
(GIS) Left-clicking an organisation unit in thematic map will pan it's location to the center of the map and zoom +1.
modified:
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-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 2009-09-11 13:36:26 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/mapping/script/index.js 2009-09-11 19:12:38 +0000
@@ -3,7 +3,7 @@
Ext.onReady(function()
{
- Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
+ Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Ext.override(Ext.layout.FormLayout, {
renderItem : function(c, position, target) {
@@ -149,6 +149,8 @@
Ext.override(Ext.form.Radio, {
checkedCls: 'x-form-radio-checked'
});
+
+ document.body.oncontextmenu = function() { return false; }
myMap: null;
map = new OpenLayers.Map({
@@ -2296,6 +2298,10 @@
popup_feature.hide();
}
+ else {
+ map.zoomIn();
+ map.panTo(feature.geometry.getBounds().getCenterLonLat());
+ }
}
function onClickUnselectChoropleth(feature) {}