Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoInt_SIDT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoInt_SIDT
Commits
46df4bea
Commit
46df4bea
authored
Oct 02, 2019
by
Luis Dominguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alerta de no imagenes en la busqueda
parent
2eb55b61
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
19 deletions
+29
-19
map.css
catalog/static/catalog/css/map.css
+3
-2
dataRetrieval.js
catalog/static/catalog/js/dataRetrieval.js
+10
-1
map.html
catalog/templates/map.html
+16
-16
No files found.
catalog/static/catalog/css/map.css
View file @
46df4bea
...
@@ -40,7 +40,7 @@ html, body
...
@@ -40,7 +40,7 @@ html, body
}
}
.mapControl
{
.mapControl
{
width
:
20
%
;
width
:
15
%
;
height
:
auto
;
height
:
auto
;
position
:
absolute
;
position
:
absolute
;
right
:
15px
;
right
:
15px
;
...
@@ -49,4 +49,5 @@ html, body
...
@@ -49,4 +49,5 @@ html, body
background-color
:
white
;
background-color
:
white
;
border-radius
:
5px
;
border-radius
:
5px
;
padding
:
3px
;
padding
:
3px
;
}
}
\ No newline at end of file
catalog/static/catalog/js/dataRetrieval.js
View file @
46df4bea
...
@@ -10,7 +10,6 @@ var IS_PRODUCT_CONTAINER = false;
...
@@ -10,7 +10,6 @@ var IS_PRODUCT_CONTAINER = false;
var
polygonList
;
var
polygonList
;
var
makeRequest
=
function
(
value
)
{
var
makeRequest
=
function
(
value
)
{
var
pol_element
=
document
.
getElementById
(
'polygon-list'
);
var
pol_element
=
document
.
getElementById
(
'polygon-list'
);
...
@@ -339,6 +338,10 @@ function creatCategoryProductContainer2(catalog){
...
@@ -339,6 +338,10 @@ function creatCategoryProductContainer2(catalog){
})
})
}
}
function
noData
(){
swal
(
"No existen imagenes para su búsqueda"
);
}
$
(
'#ajax-input'
).
focus
(
function
()
{
$
(
'#ajax-input'
).
focus
(
function
()
{
console
.
log
(
'in'
);
console
.
log
(
'in'
);
...
@@ -475,6 +478,12 @@ $(document).ready(function () {
...
@@ -475,6 +478,12 @@ $(document).ready(function () {
productListGlobe
=
[];
productListGlobe
=
[];
console
.
log
(
"DATA: "
,
data
);
console
.
log
(
"DATA: "
,
data
);
let
dataSize
=
data
.
catalog
.
length
;
if
(
dataSize
==
0
){
noData
();
}
product_list
=
data
;
product_list
=
data
;
// productListGlobe = data.catalog;
// productListGlobe = data.catalog;
// console.log('GLOBEEE: ', productListGlobe);
// console.log('GLOBEEE: ', productListGlobe);
...
...
catalog/templates/map.html
View file @
46df4bea
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<!-- <script src="https://openlayers.org/en/v4.6.4/build/ol.js"></script>-->
<!-- <script src="https://openlayers.org/en/v4.6.4/build/ol.js"></script>-->
<script
src=
"https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"
></script>
<script
src=
"https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"
></script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"
></script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"
></script>
<script
src=
"https://unpkg.com/sweetalert/dist/sweetalert.min.js"
></script>
<script
src=
"{% static 'catalog/js/openLayers4.js' %}"
></script>
<script
src=
"{% static 'catalog/js/openLayers4.js' %}"
></script>
<script
src=
"{% static 'catalog/js/sidtMap.js' %}"
></script>
<script
src=
"{% static 'catalog/js/sidtMap.js' %}"
></script>
{% endblock %}
{% endblock %}
...
@@ -124,10 +125,10 @@
...
@@ -124,10 +125,10 @@
<input
type=
"text"
id=
"ajax-input"
value=
""
name=
"value"
class=
"form-control"
autocomplete=
"off"
<input
type=
"text"
id=
"ajax-input"
value=
""
name=
"value"
class=
"form-control"
autocomplete=
"off"
placeholder=
"Search region..."
>
placeholder=
"Search region..."
>
<span
class=
"input-group-btn"
>
<span
class=
"input-group-btn"
>
<button
type=
"button"
name=
"search"
id=
"erase-btn"
class=
"btn btn-flat"
onclick=
"erase_input()"
>
<button
type=
"button"
name=
"search"
id=
"erase-btn"
class=
"btn btn-flat"
onclick=
"erase_input()"
>
<i
class=
"fa fa-eraser"
></i>
<i
class=
"fa fa-eraser"
></i>
</button>
</button>
</span>
</span>
</div>
</div>
<div
class=
"row"
id=
"option-list"
>
<div
class=
"row"
id=
"option-list"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
...
@@ -149,8 +150,8 @@
...
@@ -149,8 +150,8 @@
<i
class=
"fa fa-sync-alt"
></i>
<i
class=
"fa fa-sync-alt"
></i>
<span>
Process
</span>
<span>
Process
</span>
<span
class=
"pull-right-container"
>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
></span>
<span
class=
"label label-primary pull-right"
></span>
</span>
</span>
</a>
</a>
<ul
class=
"treeview-menu sidebar-form"
>
<ul
class=
"treeview-menu sidebar-form"
>
<li
class=
"col-xs-12"
>
{{ searchForm.platform }}
</li>
<li
class=
"col-xs-12"
>
{{ searchForm.platform }}
</li>
...
@@ -161,8 +162,8 @@
...
@@ -161,8 +162,8 @@
<i
class=
"fa fa-calendar-alt"
></i>
<i
class=
"fa fa-calendar-alt"
></i>
<span>
Date range
</span>
<span>
Date range
</span>
<span
class=
"pull-right-container"
>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
></span>
<span
class=
"label label-primary pull-right"
></span>
</span>
</span>
</a>
</a>
<ul
class=
"treeview-menu sidebar-form"
>
<ul
class=
"treeview-menu sidebar-form"
>
<span>
Start Date
</span>
<span>
Start Date
</span>
...
@@ -174,14 +175,11 @@
...
@@ -174,14 +175,11 @@
<li
class=
"cloudTreeview treeview"
id=
"searchCloud"
>
<li
class=
"cloudTreeview treeview"
id=
"searchCloud"
>
<a
href=
"#"
>
<a
href=
"#"
>
<i
class=
"fa fa-cloud"
></i>
<i
class=
"fa fa-cloud"
></i>
<img
id=
"image_clouds"
class=
"pull-right"
src=
""
<img
id=
"image_clouds"
class=
"pull-right"
src=
""
width=
40px"
style=
"margin-top: 0px;margin-right: 10px"
>
width=
40px"
style=
"margin-top: 0px;margin-right: 10px"
>
<span>
Cloud percentage
</span>
<span>
Cloud percentage
</span>
<span
class=
"pull-right-container"
>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
></span>
<span
class=
"label label-primary pull-right"
></span>
</span>
</span>
</a>
</a>
<ul
class=
"treeview-menu sidebar-form"
>
<ul
class=
"treeview-menu sidebar-form"
>
<li>
<li>
...
@@ -204,8 +202,8 @@
...
@@ -204,8 +202,8 @@
<i
class=
"fa fa-map"
></i>
<i
class=
"fa fa-map"
></i>
<span>
Polygon
</span>
<span>
Polygon
</span>
<span
class=
"pull-right-container"
>
<span
class=
"pull-right-container"
>
<span
class=
"label label-primary pull-right"
></span>
<span
class=
"label label-primary pull-right"
></span>
</span>
</span>
</a>
</a>
<ul
class=
"treeview-menu sidebar-form"
>
<ul
class=
"treeview-menu sidebar-form"
>
<li>
{{ searchForm.polygon }}
</li>
<li>
{{ searchForm.polygon }}
</li>
...
@@ -215,9 +213,9 @@
...
@@ -215,9 +213,9 @@
<a
href=
"#"
>
<a
href=
"#"
>
<div
class=
"modal"
>
<!-- Place at bottom of page -->
</div>
<div
class=
"modal"
>
<!-- Place at bottom of page -->
</div>
<span>
<span>
<button
type=
"submit"
name=
"search"
id=
"search-btn"
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i>
Search
</button>
<button
type=
"submit"
name=
"search"
id=
"search-btn"
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i>
Search
</button>
<!-- <button name="search" id="search-btn" class="btn btn-primary">Search</button> -->
<!-- <button name="search" id="search-btn" class="btn btn-primary">Search</button> -->
</span>
</span>
</a>
</a>
</li>
</li>
...
@@ -239,6 +237,8 @@
...
@@ -239,6 +237,8 @@
{% block content %}
{% block content %}
<div
id=
"map"
class=
"map"
tabindex=
"0"
></div>
<div
id=
"map"
class=
"map"
tabindex=
"0"
></div>
<!-- <div class="ad"> </div> -->
<!-- control de version de mapas -->
<!-- control de version de mapas -->
<div
class=
"mapControl"
>
<div
class=
"mapControl"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment