-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use projection definition provide by server (including projection extent) #280
Conversation
…ojection if not register on Application
'EPSG:32733': GRID_EXTENT_3857, | ||
'EPSG:25833': [-2465144.8,3638055.41,2885759.28, 9493779.8] | ||
}; | ||
|
||
const Projection = function(options={}) { | ||
if (!options.crs) return null; | ||
const {epsg, proj4:proj4def, geographic=false, axisinverted=false, extent} = options.crs; // new structure of information crs from server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type of comments (eg. without "external" references) are not very useful, if you really want to communicate something try to be more specific, otherwise it is just additional noise for the reader..
src/app/gui/map/mapservice.js
Outdated
@@ -1672,6 +1667,11 @@ proto._setupViewer = function(width, height) { | |||
this.moveDefaultLayersOnTop(zindex); | |||
}); | |||
|
|||
/** | |||
* | |||
* Register remove addLayer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improve documentation about it (it's quite ambiguous)
# Conflicts: # src/app/core/utils/geo.js # src/app/g3w-ol/g3w.ol.js # src/app/g3w-ol/map/maphelpers.js # src/app/g3w-ol/projection/projections.js # src/app/gui/map/mapservice.js # src/components/MapAddLayer.vue
# Conflicts: # src/components/MapAddLayer.vue
Related to g3w-suite/g3w-admin#430
Add also a way to get Projection object definition using g3w-admin api
/crs/<EPSG_CODE>
Example:
Request:
Response: