Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Added possibility to set property fractionalZoom to true in configuration in order to allow zooming to an arbitrary level (between the min and max resolutions) #597

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
311 changes: 311 additions & 0 deletions mapcomposer/app/static/config/mapStoreConfigGeoScopio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
{
"scaleOverlayMode": "advanced",
"actionToolScale": "medium",
"tab": false,
"gsSources":{
"geoscopio": {
"ptype": "gxp_wmssource",
"url": "http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmssfondo&map_resolution=91&language=ita",
"title": "Geoscopio sfondo",
"SRS": "EPSG:3003",
"version":"1.3.0",
"loadingProgress": true,
"layerBaseParams":{
"FORMAT":"image/png",
"TILED":false
}
},
"geoscopio_topogr": {
"ptype": "gxp_wmssource",
"url": "http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmstopogr&version=1.3.0&map_resolution=91&map_mnt=cartoteca&",
"title": "Geoscopio Basi Topografiche",
"SRS": "EPSG:3003",
"version": "1.3.0",
"loadingProgress": true,
"layerBaseParams": {
"FORMAT": "image/png",
"TILED": false
}
},
"geoscopio_ambcens": {
"ptype": "gxp_wmssource",
"url": "http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambcens&version=1.3.0&map_resolution=91&map_mnt=cartoteca&",
"title": "Geoscopio Ambiti Censuari",
"SRS": "EPSG:3003",
"version": "1.3.0",
"loadingProgress": true,
"layerBaseParams": {
"FORMAT": "image/png",
"TILED": false
}
},
"geoscopio_ortofoto": {
"ptype": "gxp_wmssource",
"url": "http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsofc",
"title": "Geoscopio ortofoto",
"SRS": "EPSG:3003",
"version":"1.3.0",
"loadingProgress": true,
"layerBaseParams":{
"FORMAT":"image/png",
"TILED":false
}
},
"geoscopio_ctr": {
"ptype": "gxp_wmssource",
"url": "http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsctr",
"title": "Geoscopio CTR",
"SRS": "EPSG:3003",
"version":"1.3.0",
"loadingProgress": true,
"layerBaseParams":{
"FORMAT":"image/png",
"TILED":false
}
},
"geoscopio_idrografia": {
"ptype": "gxp_wmssource",
"url": "http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsidrogr&map_resolution=91&language=ita&",
"title": "Geoscopio idrografia",
"SRS": "EPSG:3003",
"version":"1.3.0",
"loadingProgress": true,
"layerBaseParams":{
"FORMAT":"image/png",
"TILED":false
}
},
"geoscopio_amb_ammin": {
"ptype": "gxp_wmssource",
"url": "http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsambamm&",
"title": "Geoscopio ambiti amministrativi",
"SRS": "EPSG:3003",
"version":"1.3.0",
"loadingProgress": true,
"layerBaseParams":{
"FORMAT":"image/png",
"TILED":false
}
}
},
"loadingPanel": {
"width": 100,
"height": 100,
"center": true
},
"map": {
"projection": "EPSG:3003",
"displayProjection": "EPSG:3003",
"units": "m",
"fractionalZoom": true,
"center": [1671579.00, 4803992.00],
"scales": [50, 1000, 2000, 5000, 8000, 10000, 15000, 25000, 50000, 100000, 250000, 500000, 1000000, 1500000, 2000000],
"maxExtent": [1328298.3134386, 4554791.501599, 2014859.6865614, 5053192.498401],
"restrictedExtent": [1550750, 4674330, 1775720, 4929790],
"layers": [{
"source": "geoscopio",
"group": "background",
"title": "Basi di sfondo",
"name": "rt_sfondo.batimetriche",
"displayInLayerSwitcher": true,
"visibility": true,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio",
"group": "background",
"title": "Basi di sfondo",
"name": "rt_sfondo.intorno_toscana",
"displayInLayerSwitcher": false,
"visibility": true,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 2013 col - AGEA",
"name": "rt_ofc.10k13",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 2010 col - AGEA",
"name": "rt_ofc.10k10",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 2007 col - CGR",
"name": "rt_ofc.10k07",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 1996 bn - AIMA",
"name": "rt_ofc.10k96",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 1988 bn - RT",
"name": "rt_ofc.10k88",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 1978 bn - RT",
"name": "rt_ofc.10k78",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ortofoto",
"group": "Ortofotocarte 1:10.000",
"title": "Anno 1954 bn - RT-IGM",
"name": "rt_ofc.10k54",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_topogr",
"group": "Basi cartografiche",
"title": "Carta Topografica 50k",
"maxscale": 15000,
"name": "rt_topogr.topografica50k.grey.rt",
"displayInLayerSwitcher": true,
"visibility": true,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ctr",
"group": "Basi cartografiche",
"title": "CTR 1:10.000 Raster BW",
"name": "rt_ctr.10k",
"minscale": 15000,
"displayInLayerSwitcher": true,
"visibility": true,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ctr",
"group": "Basi cartografiche",
"title": "CTR 1:10.000 Raster GL",
"minscale": 15000,
"name": "rt_ctr.ctr10kgreylight",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
},
{
"source": "geoscopio_ambcens",
"group": "Toponimi",
"title": "Toponimi - Centri e nuclei 2011",
"name": "rt_amb_cens.centri_nuclei_2011",
"displayInLayerSwitcher": true,
"visibility": true,
"tiled": false,
"attribution": false
},{
"source": "geoscopio_amb_ammin",
"group": "Ambiti amministrativi",
"title": "Province",
"name": "rt_ambamm.idprovince.rt.poly",
"displayInLayerSwitcher": true,
"visibility": true,
"tiled": false,
"attribution": false
},{
"source": "geoscopio_amb_ammin",
"group": "Ambiti amministrativi",
"title": "Comuni",
"name": "rt_ambamm.idcomuni.rt.poly",
"displayInLayerSwitcher": true,
"visibility": false,
"tiled": false,
"attribution": false
}
]
},
"removeTools": [
"wmsgetfeatureinfo_menu_plugin"
],
"proj4jsDefs": {
"EPSG:3003": "+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=1500000 +y_0=0 +ellps=intl +units=m +no_defs +towgs84 = -104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"
},
"customTools": [
{
"ptype": "gxp_embedmapdialog",
"actionTarget": {"target": "paneltbar", "index": 2},
"embeddedTemplateName": "viewer",
"showDirectURL": true
},{
"ptype":"gxp_wmsgetfeatureinfo",
"id": "wmsgetfeatureinfo_plugin",
"toggleGroup":"toolGroup",
"closePrevious": true,
"useTabPanel": true,
"infoPanelId": "",
"disableAfterClick": false,
"loadingMask": true,
"maxFeatures": 100,
"actionTarget":{
"target":"paneltbar",
"index":14
}
}, {
"ptype": "gxp_mouseposition",
"displayProjectionCode":"EPSG:3003",
"customCss": "font-weight: bold; text-shadow: 1px 0px 0px #FAFAFA, 1px 1px 0px #FAFAFA, 0px 1px 0px #FAFAFA,-1px 1px 0px #FAFAFA, -1px 0px 0px #FAFAFA, -1px -1px 0px #FAFAFA, 0px -1px 0px #FAFAFA, 1px -1px 0px #FAFAFA, 1px 4px 5px #aeaeae;color:#050505"
}, {
"ptype": "gxp_addlayer",
"showCapabilitiesGrid": true,
"useEvents": false,
"showReport": false,
"directAddLayer": false,
"id": "addlayer"
}, {
"actions": ["-"],
"actionTarget": "paneltbar"
}, {
"ptype": "gxp_geolocationmenu",
"actionTarget": {"target": "paneltbar", "index": 23},
"toggleGroup": "toolGroup"
}, {
"ptype": "gxp_about",
"poweredbyURL": "http://www.geo-solutions.it/about/contacts/",
"actionTarget": {
"target": "panelbbar",
"index": 1
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ gxp.plugins.WMSSource = Ext.extend(gxp.plugins.LayerSource, {
config.title || config.name,
layer.url,
params, {
attribution: layer.attribution,
attribution: ("attribution" in config) ? (config.attribution ? layer.attribution : '') : layer.attribution,
maxExtent: maxCachedExtent,
restrictedExtent: maxExtent,
displayInLayerSwitcher: ("displayInLayerSwitcher" in config) ? config.displayInLayerSwitcher :true,
Expand All @@ -421,7 +421,9 @@ gxp.plugins.WMSSource = Ext.extend(gxp.plugins.LayerSource, {
dimensions: original.data.dimensions,
projection: layerProjection,
vendorParams: config.vendorParams,
transitionEffect: transitionEffect
transitionEffect: transitionEffect,
minScale: config.minscale,
maxScale: config.maxscale
}
);

Expand Down
Loading