提交 6a95e856 authored 作者: 张航's avatar 张航

将js提取到项目中,允许修改主题样式

上级 b0bbb8f5
......@@ -3,8 +3,9 @@ package com.comleader.ldmapdownload.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* @ClassName WebMvcConfig
......@@ -15,7 +16,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp
**/
@Configuration
@PropertySource(value = {"classpath:config/download-map.properties"}, encoding = "UTF-8")
public class WebMvcConfig extends WebMvcConfigurationSupport {
public class WebMvcConfig implements WebMvcConfigurer {
@Value("${file.mapImgPath}")
private String mapImgPath;
......@@ -24,7 +25,13 @@ public class WebMvcConfig extends WebMvcConfigurationSupport {
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/img/**")
.addResourceLocations("file:/"+ mapImgPath +"/");
System.out.println("END >> file:/"+ mapImgPath +"/");
registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");
}
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("*","null")
.allowedMethods("*");
}
}
# 下载地图的保存路径
#file.basepath=/Users/echo/Desktop/em-map
file.basepath=H:/em-map-blue
file.basepath=/Users/echo/Desktop/em-map
#file.basepath=H:/em-map
# 项目的发布地址
#file.mapImgPath=Users/echo/Desktop/em-map
file.mapImgPath=H:/em-map-blue
file.mapImgPath=Users/echo/Desktop/em-map
#file.mapImgPath=H:/em-map
# 下载地图的地址
#天地图服务器t0-t8间选一个
......@@ -15,8 +15,8 @@ file.mapImgPath=H:/em-map-blue
#osm地图
#map.baseurl=http://c.tile.opencyclemap.org/cycle/{z}/{x}/{y}.png
#高德地图
#map.baseurl=http://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1scale=1&style=5&x={x}&y={y}&z={z}
map.baseurl=http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}
map.baseurl=http://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1scale=1&style=8&x={x}&y={y}&z={z}
#map.baseurl=http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}
# 下载地图的类型 CUSTOM ArcGIS,一般CUSTOM就可
#type=ArcGIS
......@@ -30,7 +30,7 @@ map.maxLv=15
map.threadNum=2000
# 是否下载前8级
map.Lv8.flag=true
map.Lv8.flag=false
# 是否覆盖已有
map.download.append=false
......
# 普通街道图
gaodeNormalUrl=http://webrd0{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}
gaodeNormalUrl=http://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}
# 卫星图
gaodeSatelliteUrl=http://webst0{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}
gaodeSatelliteUrl=http://webst04.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}
# 普通街道图
googleNormalUrl=http://www.google.cn/maps/vt?lyrs=m@189&gl=cn&x={x}&y={y}&z={z}
# 卫星图
......
.marker-cluster-small {
background-color: rgba(181, 226, 140, 0.6);
}
.marker-cluster-small div {
background-color: rgba(110, 204, 57, 0.6);
}
.marker-cluster-medium {
background-color: rgba(241, 211, 87, 0.6);
}
.marker-cluster-medium div {
background-color: rgba(240, 194, 12, 0.6);
}
.marker-cluster-large {
background-color: rgba(253, 156, 115, 0.6);
}
.marker-cluster-large div {
background-color: rgba(241, 128, 23, 0.6);
}
.marker-cluster-huge {
background-color: rgba(248, 14, 14, 0.6);
}
.marker-cluster-huge div {
background-color: rgba(248, 14, 14, 0.6);
}
/* IE 6-8 fallback colors */
.leaflet-oldie .marker-cluster-small {
background-color: rgb(181, 226, 140);
}
.leaflet-oldie .marker-cluster-small div {
background-color: rgb(110, 204, 57);
}
.leaflet-oldie .marker-cluster-medium {
background-color: rgb(241, 211, 87);
}
.leaflet-oldie .marker-cluster-medium div {
background-color: rgb(240, 194, 12);
}
.leaflet-oldie .marker-cluster-large {
background-color: rgb(253, 156, 115);
}
.leaflet-oldie .marker-cluster-large div {
background-color: rgb(241, 128, 23);
}
.leaflet-oldie .marker-cluster-huge {
background-color: rgb(253, 115, 115);
}
.leaflet-oldie .marker-cluster-huge div {
background-color: rgb(253, 115, 115);
}
.marker-cluster {
background-clip: padding-box;
border-radius: 20px;
}
.marker-cluster div {
width: 30px;
height: 30px;
margin-left: 5px;
margin-top: 5px;
text-align: center;
border-radius: 15px;
font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.marker-cluster span {
line-height: 30px;
}
\ No newline at end of file
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}
.leaflet-cluster-spider-leg {
/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}
.pulse-icon {
display: inline-block;
width: 15px;
height: 15px;
border-radius: 100%;
background-color: red;
position: relative;
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);
}
.dive-icon {
content: "";
box-shadow: 0 0 6px 2px red;
animation: pulsate 1s ease-out;
animation-iteration-count: infinite;
animation-delay: 1.1s;
-webkit-border-radius: 100%;
border-radius: 100%;
height: 200%;
width: 200%;
animation: pulsate 2s infinite;
position: absolute;
margin: -50% 0 0 -50%;
}
@keyframes pulsate {
0% {
transform: scale(0.1, 0.1);
opacity: 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
}
50% {
opacity: 1;
-ms-filter: none;
filter: none;
}
100% {
transform: scale(1.2,1.2);
opacity: 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
}
}
\ No newline at end of file
/*.leaflet-zoom-animated img {*/
/* -webkit-filter: invert(1) grayscale(20%) opacity(1) hue-rotate(360deg) !important;*/
/*}*/
.leaflet-zoom-animated img {
/* hue-rotate(380deg) invert(1)*/
-webkit-filter: invert(1)!important;
}
\ No newline at end of file
#map {
width: 800px;
height: 600px;
border: 1px solid #ccc;
}
#progress {
display: none;
position: absolute;
z-index: 1000;
left: 400px;
top: 300px;
width: 200px;
height: 20px;
margin-top: -20px;
margin-left: -100px;
background-color: #fff;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 4px;
padding: 2px;
}
#progress-bar {
width: 0;
height: 100%;
background-color: #76A6FC;
border-radius: 4px;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论