Something wrong with esri.github.io/bootstrap-map-js

528
2
03-30-2021 03:19 AM
SilviaP
New Contributor II

I developed a web app and it is currently giving an error about esri bootstrap reference. It is as if it does not exist or cannot find it.

The error is the following:

bootstrapmap.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) (http://esri.github.io/bootstrap-map-js/src/css/bootstrapmap.css)

Part of the code:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Estaciones climatológicas AEMET</title>

<!-- Web Framework CSS - Bootstrap (getbootstrap.com) and Bootstrap-map-js (github.com/esri/bootstrap-map-js) -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="//esri.github.io/bootstrap-map-js/src/css/bootstrapmap.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">


<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 97.65%;
width: 100%;
font-family: "Avenir Next W00";
}

#titleDiv {
position: relative;
height: 55px;
width: 100%;
display: flex;
justify-content: space-between;
color: #f8f8f8;
background: #464646;
z-index: 1;
}

#title {
margin: 15px;
font-size: 20px;
overflow: hidden;
}

.topnav {
overflow: hidden;
background-color: #333;
}

/* Style the topnav links */
.topnav a {
float: right;
display: block;
color: #f2f2f2;
text-align: center;
padding: 18px 20px;
text-decoration: none;
}

/* Change color on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}

/*.esri-ui-corner .esri-widget--panel {
width: 300px;
min-height: 32px;
}*/


.botonIconoMarker{
border: 0.2px solid ##9e9e9e;
padding-left: 10px;
padding-right: 23px;
padding-top: 23px;
padding-bottom: 15px;
border-radius: 10px;
position: relative;
box-sizing: border-box;
cursor:pointer;
background: url(http://localhost/Estaciones_climatologicas_AEMET/Iconos/Marker.png) no-repeat 0 0
/*background: url(/Iconos/Marker.png) no-repeat 0 0*/
}


.botonIconoMarker:disabled,
.botonIconoMarker[disabled] {
opacity: 0.6;
cursor: not-allowed;
}

.botonIcono:hover{
opacity:0.6;
}

.botonIconoMarker:active{
box-shadow: 0 5px #666;
transform: translateY(4px);
}


.botonIconoEscoba{
border: 0.2px solid ##9e9e9e;
padding-left: 10px;
padding-right: 23px;
padding-top: 23px;
padding-bottom: 15px;
border-radius: 10px;
position: relative;
box-sizing: border-box;
cursor:pointer;
background: url(http://localhost/Estaciones_climatologicas_AEMET/Iconos/Escoba.jpg) no-repeat 0 0
/*background: url(/Iconos/Escoba.jpg) no-repeat 0 0*/
}

.botonIconoEscoba:hover{
opacity:0.6;
}

.botonIconoEscoba:active{
box-shadow: 0 5px #666;
transform: translateY(4px);
}


.panel{
position: absolute;
top: 10%;
left: 50%;
transform: translateX(-50%) translateY(-10%);
border-color: #464646;
}

.panel > .panel-heading {
background-color: #464646;
color: #ffffff;
}

.close {
line-height: 0.8;
text-shadow: 0 0.0px 0 #fff;
color: #fff;
opacity: 0.5;
}

 

/*.esri-layer-list__list(1) {
display:none;
})*/
</style>

<link rel="stylesheet" href="https://js.arcgis.com/4.6/esri/css/main.css">

<script src="https://js.arcgis.com/4.6/"></script>

</head>

<script>................

 

 

Can anybody help me, please?

0 Kudos
2 Replies
AndyGup
Esri Regular Contributor

Hi @SSilva, the https://github.com/Esri/bootstrap-map-js project isn't being maintained, there are newer approaches. If you can provide more information on what you are trying to do, maybe we can point you in a better direction?

0 Kudos
SilviaP
New Contributor II

Hi AndyGup,

Thanks for your answer. One of the functions of the web is: when you click on a button,
a window was opened in which you entered the coordinates (latitude and longitude) of a
point and placed it on the map. I don't remember what could be done with the Web Framework CSS - Bootstrap-map-js
(github.com/esri/bootstrap-map-js)

Thank you so much

0 Kudos