提交 cac24f81 authored 作者: 张航's avatar 张航

正式将项目命名为领图

上级 140ef9c9
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
# L.TileLayer.PixelFilter
A Leaflet TileLayer extension which will modify RGB codes in the tiles, based on a custom function.
Demos coming soon...
# Constructor and Options
Usage is almost exactly like a typical L.TileLayer, but you can pass a function to colorize each pixel individualy.
var colorizd = L.tileLayer.colorizr('https://osm-mapbox-or-something/tiles/{z}/{x}/{y}.png', {
colorize: function(pixel) {
// pixel is an object with red, green, blue and alpha channel
// like this {r, g, b, a}
// swap red and green channel
return { r: pixel.g, g: pixel.r };
}
}).addTo(MAP);
{
"name": "leaflet-tilelayer-colorizr",
"version": "1.0.0",
"description": "A Leaflet TileLayer with colors",
"main": "leaflet-tilelayer-colorizr.js",
"keywords": [
"leaflet"
],
"author": "hnrchrdl",
"license": "WTFPL",
"homepage": "",
"peerDependencies": {
"leaflet": "^1.0.0"
}
}
// 点聚合样式
(function () {
document.write('<link rel="stylesheet" type="text/css" href="'+localhostPath+'/cmjs/css/screen.css">');
document.write('<link rel="stylesheet" type="text/css" href="'+localhostPath+'/cmjs/css/MarkerCluster.css">');
document.write('<link rel="stylesheet" type="text/css" href="'+localhostPath+'/cmjs/css/MarkerCluster.Default.css">');
document.write('<link rel="stylesheet" type="text/css" href='+localhostPath+'"/static/cmjs/lmcss/screen.css">');
document.write('<link rel="stylesheet" type="text/css" href='+localhostPath+'"/static/cmjs/lmcss/MarkerCluster.css">');
document.write('<link rel="stylesheet" type="text/css" href='+localhostPath+'"/static/cmjs/lmcss/MarkerCluster.Default.css">');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/leaflet.markercluster-src.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/realworld.388.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/leaflet.markercluster-src.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/realworld.388.js"></script>');
})();
\ No newline at end of file
......@@ -23,7 +23,7 @@ L.initMap = function(mapDiv,data){
}
if (data.mapStyle && data.mapStyle.indexOf("blue") != -1){
document.write('<link rel="stylesheet" type="text/css" href="'+localhostPath+'/cmjs/css/blue.css">');
document.write('<link rel="stylesheet" type="text/css" href='+localhostPath+'"/static/cmjs/lmcss/blue.css">');
}
//将图层加载到地图上,并设置最大的聚焦还有map样式
......
......@@ -7,17 +7,17 @@ var localhostPath;
localhostPath = contexPaht;
document.write('<meta name="viewport" content="width=device-width,initial-scale=1.0">');
document.write('<meta http-equiv="X-UA-Compatible" content="ie=edge">');
document.write('<link rel="stylesheet" type="text/css" href="'+localhostPath+'/cmjs/dist/leaflet.css">');
document.write('<link rel="stylesheet" type="text/css" href="'+localhostPath+'/cmjs/css/blinkmarker.css">');
document.write('<link rel="stylesheet" type="text/css" href='+localhostPath+'"/static/cmjs/leafletJs/leaflet.css">');
document.write('<link rel="stylesheet" type="text/css" href='+localhostPath+'"/static/cmjs/lmcss/blinkmarker.css">');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/dist/leaflet-src.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/setMapStytle.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/leaflet-tilelayer-colorizr-gh-pages/leaflet-tilelayer-colorizr.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/initMap.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/blinkmarker.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/DrawTool.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/GeoUtil.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/LineDistance.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/markerTrack.js"></script>');
document.write('<script type="text/javascript" src="'+localhostPath+'/cmjs/jsLib/em.geometryutil.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/leafletJs/leaflet-src.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/setMapStytle.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/leaflet-tilelayer-colorizr.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/initMap.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/blinkmarker.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/DrawTool.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/GeoUtil.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/LineDistance.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/markerTrack.js"></script>');
document.write('<script type="text/javascript" src='+localhostPath+'"/static/cmjs/lmJs/lm.geometryutil.js"></script>');
})();
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论