我的文件管理器中有一个 .htaccess 文件,但我的 qgis 地图中的地图坐标仍然有结尾。我该如何摆脱它?这是网站,您可以在进入页面时看到添加的结尾。 www.brianconfantomes.com
这是地图的 javascript:我不知道是什么将纬度/经度添加到网址中。
<script src="js/qgis2web_expressions.js"></script>
<script src="js/leaflet.js"></script>
<script src="js/leaflet.rotatedMarker.js"></script>
<script src="js/leaflet.pattern.js"></script>
<script src="js/leaflet-hash.js"></script>
<script src="js/Autolinker.min.js"></script>
<script src="js/rbush.min.js"></script>
<script src="js/labelgun.min.js"></script>
<script src="js/labels.js"></script>
<script src="data/laRoute_1.js"></script>
<script src="data/route_2.js"></script>
<script>
// L Map editted
var map = L.map('map', { zoomControl: true, maxZoom: 28, minZoom: 1 }).setView([44.89940, 6.64487], 17);
var hash = new L.Hash(map);
map.attributionControl.setPrefix('<a href="https://github.com/tomchadwin/qgis2web" target="_blank">qgis2web</a> · <a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a> · <a href="https://qgis.org">QGIS</a>');
var autolinker = new Autolinker({ truncate: { length: 30, location: 'smart' } });
var bounds_group = new L.featureGroup([]);
function setBounds() {
}
map.createPane('pane_OSM_0');
map.getPane('pane_OSM_0').style.zIndex = 400;
var layer_OSM_0 = L.tileLayer('https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=1d4d71be765c47919143726197f84d5f', {
pane: 'pane_OSM_0',
opacity: 1.0,
attribution: '',
minZoom: 1,
maxZoom: 28,
minNativeZoom: 0,
maxNativeZoom: 18
});
layer_OSM_0;
map.addLayer(layer_OSM_0);
function pop_laRoute_1(feature, layer) {
var popupContent = '<table>\
<tr>\
<td colspan="2">' + (feature.properties['id'] !== null ? autolinker.link(feature.properties['id'].toLocaleString()) : '') + '</td>\
</tr>\
</table>';
layer.bindPopup(popupContent, { maxHeight: 400 });
}
function style_laRoute_1_0() {
return {
pane: 'pane_laRoute_1',
opacity: 1,
color: 'rgba(227,26,28,1.0)',
dashArray: '',
lineCap: 'round',
lineJoin: 'round',
weight: 7.0,
fillOpacity: 0,
interactive: true,
}
}
map.createPane('pane_laRoute_1');
map.getPane('pane_laRoute_1').style.zIndex = 401;
map.getPane('pane_laRoute_1').style['mix-blend-mode'] = 'normal';
var layer_laRoute_1 = new L.geoJson(json_laRoute_1, {
attribution: '',
interactive: true,
dataVar: 'json_laRoute_1',
layerName: 'layer_laRoute_1',
pane: 'pane_laRoute_1',
onEachFeature: pop_laRoute_1,
style: style_laRoute_1_0,
});
bounds_group.addLayer(layer_laRoute_1);
map.addLayer(layer_laRoute_1);
function pop_route_2(feature, layer) {
var popupContent = '<table>\
<tr>\
<td colspan="2"><strong>Stop</strong><br />' + (feature.properties['Stop'] !== null ? autolinker.link(feature.properties['Stop'].toLocaleString()) : '') + '</td>\
</tr>\
</table>';
layer.bindPopup(popupContent, { maxHeight: 400 });
}
function style_route_2_0() {
return {
pane: 'pane_route_2',
radius: 8.0,
opacity: 1,
color: 'rgba(128,17,25,1.0)',
dashArray: '',
lineCap: 'butt',
lineJoin: 'miter',
weight: 4.0,
fill: true,
fillOpacity: 1,
fillColor: 'rgba(10,3,4,1.0)',
interactive: true,
}
}
map.createPane('pane_route_2');
map.getPane('pane_route_2').style.zIndex = 402;
map.getPane('pane_route_2').style['mix-blend-mode'] = 'normal';
var layer_route_2 = new L.geoJson(json_route_2, {
attribution: '',
interactive: true,
dataVar: 'json_route_2',
layerName: 'layer_route_2',
pane: 'pane_route_2',
onEachFeature: pop_route_2,
pointToLayer: function (feature, latlng) {
var context = {
feature: feature,
variables: {}
};
return L.circleMarker(latlng, style_route_2_0(feature));
},
});
bounds_group.addLayer(layer_route_2);
map.addLayer(layer_route_2);
setBounds();
var i = 0;
layer_route_2.eachLayer(function (layer) {
var context = {
feature: layer.feature,
variables: {}
};
layer.bindTooltip((layer.feature.properties['Stop'] !== null ? String('<div style="color: #000000; font-size: 13pt; font-family: \'Showcard Gothic\', sans-serif;">' + layer.feature.properties['Stop']) + '</div>' : ''), { permanent: true, offset: [-0, -16], className: 'css_route_2' });
labels.push(layer);
totalMarkers += 1;
layer.added = true;
addLabel(layer, i);
i++;
});
resetLabels([layer_route_2]);
map.on("zoomend", function () {
resetLabels([layer_route_2]);
});
map.on("layeradd", function () {
resetLabels([layer_route_2]);
});
map.on("layerremove", function () {
resetLabels([layer_route_2]);
});
</script>