Opened 14 years ago
Closed 13 years ago
#172 closed task (fixed)
"MapPanel" and "Layer" new widgets
Reported by: | adube | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | widgets | Version: | |
Keywords: | Cc: |
Description
Problem
The Map widget have several problems. It :
- doesn't create the GeoExt.MapPanel
- has its own 'core' widget file to manage its layers in the ACL, making it special and complex
- doesn't support all OpenLayers.Map and OpenLayers.Layer possible options.
GeoExt has become our main framework to build map applications. Most of its widgets and ux widgets rely on the MapPanel. The fact that we need to manage it manually in the template is becoming a critical problem.
Solution
Deprecate the map widget, replacing it by two new ones : MapPanel and Layer.
- Both would be 'generic' core widgets
- MapPanel would be responsible of creating the OpenLayers.Map and GeoExt.MapPanel objects
- Layer would be responsible of creating the OpenLayers.Layer objects
- The PGSQLMapContextConfig driver would use these new widgets instead of the current Map one.
- We'll be able to use the same Layer widget for multiple resources to use the same options to create the according layers.
- The name of the layer will come from the resource 'title' or 'name' if the title is not defined
- The 'servicetype' option could be optional. If not set, then create one layer per datastore each resource has.
Conclusion
This is a big change but a required one to follow the GeoExt wave.
Change History (6)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
r919, featuring :
- PGSQLMapContextConfig driver support AND use of these new widgets instead of the Map widget.
- geoexttoolbar/pgsqlconfig sample updated to use the MapPanel and Layer instead of Map as well
important changes
- maxscaledenom and minscaledenom resource options removed. Use 'minScale' and 'maxScale' instead. You can still add a service type string at the end to allow resource option per service type.
- layertreepath resource option replaced by group. You can still add a service type string at the end to allow resource option per service type.
- Now, MapContext and Resource options that define OpenLayers or GeoExt properties MUST have the same name, for example : isbaselayer is no longer supported, use isBaseLayer instead.
comment:3 by , 14 years ago
To do (more)
The PGSQLMapContextConfig driver should still have an option to create the old Map widget instead of the MapPanel and Layer widgets for backward compatibility.
comment:4 by , 14 years ago
r955, featuring :
- New PGSQLMapContextConfig driver option to use the legacy 'Map' and 'MapFishLayerTree' widgets and their according options with this config :
org_geoprisma_config_PGSQLMapContextConfig::useLegacyWidgets(true);
- New sample that shows the use of that new option
comment:6 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Those two widgets are completed. The remaining things to do such as 'map' widget deprecation should be covered in other tickets.
r918 , featuring :
more technical details
known issues
to do and enhancements
Deprecate the Map widget
As soon as these widgets are 100% complete, we should deprecate the Map widget.