Skip to content

Commit

Permalink
create basic web ui for geoviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gooong committed May 20, 2018
1 parent e1a3caa commit 9ebd153
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions web/pgadmin/tools/sqleditor/static/js/sqleditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ define('tools.querytool', [
content: '<div id ="datagrid" class="sql-editor-grid-container text-12" tabindex: "0"></div>',
});

var map_view = new pgAdmin.Browser.Panel({
name: 'map_view',
title: gettext('Map View'),
width: '100%',
height: '100%',
isCloseable: false,
isPrivate: true,
content: '<div id="map_view"></div>',
});

var explain = new pgAdmin.Browser.Panel({
name: 'explain',
title: gettext('Explain'),
Expand Down Expand Up @@ -244,12 +254,14 @@ define('tools.querytool', [

// Load all the created panels
data_output.load(main_docker);
map_view.load(main_docker);
explain.load(main_docker);
messages.load(main_docker);
history.load(main_docker);

// Add all the panels to the docker
self.data_output_panel = main_docker.addPanel('data_output', wcDocker.DOCK.BOTTOM, sql_panel_obj);
self.geo_viewer_panel = main_docker.addPanel('map_view', wcDocker.DOCK.STACKED, self.data_output_panel);
self.explain_panel = main_docker.addPanel('explain', wcDocker.DOCK.STACKED, self.data_output_panel);
self.messages_panel = main_docker.addPanel('messages', wcDocker.DOCK.STACKED, self.data_output_panel);
self.history_panel = main_docker.addPanel('history', wcDocker.DOCK.STACKED, self.data_output_panel);
Expand Down

0 comments on commit 9ebd153

Please sign in to comment.