Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 89f8f2e

Browse files
milafrerichsjj0hns0n
authored andcommitted
Fix edit map template (#157)
got the name wrong in my PR for geonode, but can change the template name here added all the new stuff that is there for new map into edit map
1 parent cd54e80 commit 89f8f2e

File tree

7 files changed

+10
-200
lines changed

7 files changed

+10
-200
lines changed

geonode-client/templates/client/_client_composer_js.html

Lines changed: 0 additions & 2 deletions
This file was deleted.

geonode-client/templates/client/_client_viewer_js.html

Lines changed: 0 additions & 2 deletions
This file was deleted.

geonode-client/templates/client/layer_map.html

Lines changed: 0 additions & 48 deletions
This file was deleted.

geonode-client/templates/client/map_detail.html

Lines changed: 0 additions & 48 deletions
This file was deleted.

geonode-client/templates/client/map_new.html

Lines changed: 0 additions & 51 deletions
This file was deleted.

geonode-client/templates/client/map_view.html

Lines changed: 0 additions & 46 deletions
This file was deleted.

geonode-client/templates/geonode-client/map_edit.html renamed to geonode-client/templates/geonode-client/edit_map.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
{% client_composer_js %}
55

66
<style>
7+
body {
8+
padding-top: 0px !important;
9+
}
710
#content {
811
position: relative;
9-
margin-top: 15px;
1012
}
1113
#client-composer-map {
12-
height: 100%;
14+
position: absolute;
15+
top: 72px;
16+
height: calc(100% - 72px);
1317
width: 100%;
1418
}
1519
</style>
@@ -43,10 +47,13 @@
4347
tools: [{ptype: "gxp_getfeedfeatureinfo"}],
4448
};
4549
var config = Object.assign( defaultConfig, {{ config|safe }});
46-
var options = {baseUrl: "{{ GEOSERVER_BASE_URL }}", sources: config.sources, server: "{{SITEURL}}", mapConfig: config, mapId: "{{mapId}}"};
50+
var options = {baseUrl: "{{ GEOSERVER_BASE_URL }}", sources: config.sources, server: "{{SITEURL}}", wmsServer: "{{ GEOSERVER_BASE_URL }}ows/", mapConfig: config, mapId: "{{mapId}}"};
4751
if (config.proxy !== '') {
4852
options.proxy = "{{PROXY_URL}}";
4953
}
54+
{% if user.is_authenticated %}
55+
options.userLoggedIn = true;
56+
{% endif %}
5057
var composer = new window.Composer('client-composer-map', options);
5158
composer.compose();
5259
});

0 commit comments

Comments
 (0)