You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
210 lines
26 KiB
210 lines
26 KiB
2 years ago
|
function _config_init_map()
|
||
|
{
|
||
|
var _config={
|
||
|
_initCenter:[24.671347268277, 36.721762058695],
|
||
|
_initZoom:6,
|
||
|
_defaultScales:[0, 250,500,750,1000,2000,5000,10000],
|
||
|
_mapControls:{
|
||
|
navigation:new OpenLayers.Control.Navigation(),
|
||
|
navigationHistory:new OpenLayers.Control.NavigationHistory(),
|
||
|
pan:new OpenLayers.Control.Pan(),
|
||
|
zoomByArea:new OpenLayers.Control.ZoomBox(),
|
||
|
scaleBar:new OpenLayers.Control.ScaleBar({
|
||
|
divisions:2,
|
||
|
subdivisions:2,
|
||
|
showMinorMeasures:true,
|
||
|
singleLine:true,
|
||
|
abbreviateLabel:true
|
||
|
}),
|
||
|
overview: new OpenLayers.Control.OverviewMap({
|
||
|
maximized: false,
|
||
|
maximizeTitle: _map_mapoverview_control_maximizeTitle,
|
||
|
minimizeTitle: _map_mapoverview_control_minimizeTitle
|
||
|
})
|
||
|
},
|
||
|
_mapProjections:[
|
||
|
{
|
||
|
_epsg:"EPSG:2100",
|
||
|
_title:"ΕΓΣΑ 87 (EPSG:2100)",
|
||
|
_maxExtent:"31668.0,3713192.0,1080244.0,4761768.0",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3034",
|
||
|
_title:"ETRS89 / ETRS-LCC (EPSG:3034)",
|
||
|
_maxExtent:"2122254.2378, 1164627.9290, 5955457.4541, 5021872.0731",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3035",
|
||
|
_title:"ETRS89 / ETRS-LAEA (EPSG:3035)",
|
||
|
_maxExtent:"2426378.0132, 1528101.2618, 6293974.6215, 5446513.5222",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3038",
|
||
|
_title:"ETRS89 / ETRS-TM26 (EPSG:3038)",
|
||
|
_maxExtent:"197427.2404, 2779382.9587, 802572.7596, 7300894.6107",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3039",
|
||
|
_title:"ETRS89 / ETRS-TM27 (EPSG:3039)",
|
||
|
_maxExtent:"203872.6488, 3056487.4888, 796127.3512, 7378848.1182",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3040",
|
||
|
_title:"ETRS89 / ETRS-TM28 (EPSG:3040)",
|
||
|
_maxExtent:"203872.6488, 3056487.4888, 796127.3512, 7384416.4233",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3041",
|
||
|
_title:"ETRS89 / ETRS-TM29 (EPSG:3041)",
|
||
|
_maxExtent:"229578.6300, 3988111.9622, 770421.3700, 6914547.3835",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3042",
|
||
|
_title:"ETRS89 / ETRS-TM30 (EPSG:3042)",
|
||
|
_maxExtent:"225370.7346, 3849419.9580, 774629.2654, 6914547.3835",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3043",
|
||
|
_title:"ETRS89 / ETRS-TM31 (EPSG:3043)",
|
||
|
_maxExtent:"238379.2278, 4265559.3497, 761620.7722, 6914547.3835",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3044",
|
||
|
_title:"ETRS89 / ETRS-TM32 (EPSG:3044)",
|
||
|
_maxExtent:"231991.5007, 4065788.6515, 768008.4993, 7768690.1087",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3045",
|
||
|
_title:"ETRS89 / ETRS-TM33 (EPSG:3045)",
|
||
|
_maxExtent:"227879.8880, 3932632.6543, 772120.1120, 8325798.2469",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3046",
|
||
|
_title:"ETRS89 / ETRS-TM34 (EPSG:3046)",
|
||
|
_maxExtent:"225536.5500, 3854967.2384, 774463.4500, 8325798.2469",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3047",
|
||
|
_title:"ETRS89 / ETRS-TM35 (EPSG:3047)",
|
||
|
_maxExtent:"225536.5500, 3854967.2384, 774463.4500, 8325798.2469",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:3857",
|
||
|
_title:"Pseudo Mercator (EPSG:3857)",
|
||
|
_maxExtent:"-20037508.34,-20037508.34,20037508.34,20037508.34",
|
||
|
_numDigits:3
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:4258",
|
||
|
_title:"ETRS89 (EPSG:4258)",
|
||
|
_maxExtent:"10.6700, 34.5000, 31.5500, 71.0500",
|
||
|
_numDigits:7
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:4326",
|
||
|
_title:"WGS 84 (EPSG:4326)",
|
||
|
_maxExtent:"-180.0000, -90.0000, 180.0000, 90.0000",
|
||
|
_numDigits:7
|
||
|
},
|
||
|
{
|
||
|
_epsg:"EPSG:900913",
|
||
|
_title:"Google Mercator (EPSG:900913)",
|
||
|
_maxExtent:"-20037508.34,-20037508.34,20037508.34,20037508.34",
|
||
|
_numDigits:3
|
||
|
}
|
||
|
|
||
|
],
|
||
|
_charsets:[
|
||
|
["ISO 8859-1","ISO-8859-1"],
|
||
|
["ISO 8859-2","ISO-8859-2"],
|
||
|
["ISO 8859-3","ISO-8859-3"],
|
||
|
["ISO 8859-4","ISO-8859-4"],
|
||
|
["ISO 8859-5","ISO-8859-5"],
|
||
|
["ISO 8859-6","ISO-8859-6"],
|
||
|
["ISO 8859-7","ISO-8859-7"],
|
||
|
["ISO 8859-8","ISO-8859-8"],
|
||
|
["ISO 8859-9","ISO-8859-9"],
|
||
|
["ISO 8859-10","ISO-8859-10"],
|
||
|
["ISO 8859-11","ISO-8859-11"],
|
||
|
["ISO 8859-13","ISO-8859-13"],
|
||
|
["ISO 8859-14","ISO-8859-14"],
|
||
|
["ISO 8859-15","ISO-8859-15"],
|
||
|
["ISO 8859-16","ISO-8859-16"],
|
||
|
["UTF 8","UTF-8"]
|
||
|
],
|
||
|
_defaultProjection:"EPSG:900913",
|
||
|
_setCoordinatesZoomLevel:20,
|
||
|
_setMousemoveInfo:false,
|
||
|
_setCoordinatesDefaultProjections:["GGRS 87 (EPSG:2100)","Google Mercator (EPSG:900913)","WGS 84 (EPSG:4326)"],
|
||
|
_getCoordinatesDefaultProjections:["GGRS 87 (EPSG:2100)","Google Mercator (EPSG:900913)","WGS 84 (EPSG:4326)"],
|
||
|
_mapUnits:[],
|
||
|
_mapOptions:{
|
||
|
units: "km",
|
||
|
zoomMethod:null,
|
||
|
transitionEffect:null,
|
||
|
projection:new OpenLayers.Projection("EPSG:900913"),
|
||
|
displayProjection: new OpenLayers.Projection("EPSG:4326"),
|
||
|
maxExtent: new OpenLayers.Bounds.fromString("-20037508.34,-20037508.34,20037508.34,20037508.34"),
|
||
|
controls:[]
|
||
|
},
|
||
|
_canEdit:true,
|
||
|
_canAddService:true,
|
||
|
_canRemoveLayer:true,
|
||
|
_basemapLayers:[
|
||
|
{
|
||
|
_layer:new OpenLayers.Layer.Vector(
|
||
|
"Blank",
|
||
|
{
|
||
|
icon:'images/earth.png',
|
||
|
projection:new OpenLayers.Projection("EPSG:900913"),
|
||
|
fractionalZoom:false,
|
||
|
isBaseLayer:true,
|
||
|
maxExtent:new OpenLayers.Bounds.fromString("-20037508.34,-20037508.34,20037508.34,20037508.34")
|
||
|
|
||
|
})
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
return _config;
|
||
|
|
||
|
}
|
||
|
|
||
|
var _config_create_tree_groups=[{"text":"Products","children":[],"_groupId":"_groupId_2_0_1_1_0_0_","checked":false,"expanded":true,"leaf":false},{"text":"Data Sources","children":[{"text":"MSFD Monitoring Program","children":[{"text":"MSFD Cruises","children":[],"_groupId":"_groupId_4_5_3_0_2_1_1_1_0_0_","checked":false,"expanded":true,"leaf":false}],"_groupId":"_groupId_3_0_2_1_1_1_0_0_","checked":false,"expanded":true,"leaf":false},{"text":"Other","children":[],"_groupId":"_groupId_3_1_2_1_1_1_0_0_","checked":false,"expanded":true,"leaf":false}],"_groupId":"_groupId_2_1_1_1_0_0_","checked":false,"expanded":true,"leaf":false},{"text":"Marine Reporting Units","children":[{"text":"Assessment Areas","children":[],"_groupId":"_groupId_3_6_2_2_1_1_0_0_","checked":false,"expanded":true,"leaf":false}],"_groupId":"_groupId_2_2_1_1_0_0_","checked":false,"expanded":true,"leaf":false}]
|
||
|
|
||
|
var _config_load_layers=[{"_serviceUrl":"http://marre.getmap.gr/geoserver/wms","_serviceType":"WMS","_username":null,"_password":null,"_layerName":["poseidon:poseidon"],"_groupId":"layers","_generalProperties":{"_isQueryable":"inherit","_isSearchable":"inherit","_isEditable":"inherit","_isPrintable":"inherit","_isSLDEditable":"inherit","_singleTile":"*","_tiled":"inherit","_transparent":"inherit","_visibility":"*"},"_perLayerProperties":[{"_layerName":"poseidon:poseidon","_layerTitle":"Poseidon","_layerAbstract":"","_singleTile":true,"_groupId":"_groupId_3_1_2_1_1_1_0_0_","_sld_body":"","_isSearchable":true,"_attributesReorder":true,"_sld_url":"","_visibility":false,"_nativeSRS":"urn:ogc:def:crs:EPSG::4326","_xy":false,"_geometryField":"geom","_opacity":1,"_attributes":["id","geom","name_code","tspr","type","institution","dateStart","dateEnd","latitude","longitude","status","pgroup","typegroup","trajectory"],"_attributesExceptions":[],"_attributesFields":[{"_attributeName":"id","_attributeType":"string","_attributeTranslation":"ID","_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":false,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"geom","_attributeType":"PointPropertyType","_attributeTranslation":null,"_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":true,"_attributeVisible":true,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"name_code","_attributeType":"string","_attributeTranslation":"Code/Name","_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":true,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"tspr","_attributeType":"string","_attributeTranslation":"Data Type","_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":true,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"type","_attributeType":"string","_attributeTranslation":"Type","_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":false,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"institution","_attributeType":"string","_attributeTranslation":null,"_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":false,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"dateStart","_attributeType":"dateTime","_attributeTranslation":"Start Date","_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":true,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"dateEnd","_attributeType":"dateTime","_attributeTranslation":"End Date","_attributeValue":null,"_attributeEditor":null,"_attributeIsSortable":true,"_attributeOrder":0,"_attributeIsVisible":true,"_attributeIsSearchable":true,"_attributeIsGeometry":false,"_attributeVisible":true,"_geometryIsMulti":false,"_attributeShowOnSummary":false,"_attributeInclude":true},{"_attributeName":"latitude","_attributeType":"string","_attributeTranslation":"Latitude","_attributeValue":
|
||
|
|
||
|
var _config_field_domains_database="postgres";
|
||
|
|
||
|
var _config_field_domains=[{"_service_url":"http:\/\/localhost:8080\/geoserver\/wfs","_layer_name":"gisdata:point_3857","_field_name":"field1","_field_domain":[{"name":"value 1","value":"value 1"},{"name":"value 2","value":"value 2"},{"name":"value 3","value":"value 3"}]}];
|
||
|
|
||
|
var _config_print_layouts=[{
|
||
|
_print_identifier_title:"Layout 1",
|
||
|
_is_default:true,
|
||
|
_print_logo:"",
|
||
|
_print_title:"Title",
|
||
|
_print_abstract:"Abstract"
|
||
|
},
|
||
|
{
|
||
|
_print_identifier_title:"Layout 2",
|
||
|
_print_logo:"",
|
||
|
_print_title:"",
|
||
|
_print_abstract:"Abstract"
|
||
|
|
||
|
}];
|
||
|
|
||
|
|