A Pen by moklick
How do I make an a pen by moklick?
What is a a pen by moklick? How do you make a a pen by moklick? This script and codes were developed by Moklick on 20 November 2022, Sunday.
A Pen by moklick - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by moklick</title> <link rel='stylesheet prefetch' href='http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="map"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.4/leaflet.js'></script>
<script src='js/xbjmbq.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by moklick - Script Codes CSS Codes
*{padding:0; margin:0;}
html, body, #map{width:100%; height:100%; background:#dfdfdf}
A Pen by moklick - Script Codes JS Codes
// create map
var map = new L.Map('map', { center: new L.LatLng(52.520, 13.385), zoom: 10
}), // add geojson geoLayer = L.geoJson(geojson.geometries).addTo(map), // color scale from http://colorbrewer2.org colors = ['#eff3ff', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#084594'];
// set base styles
geoLayer.setStyle({ fillOpacity: 1, color: 'white', weight: 1
});
geoLayer.eachLayer(function(layer){ var col = colors[~~(Math.random() * colors.length)]; layer.setStyle({fillColor: col}); layer.on('click', zoomToLayer); });
function zoomToLayer(evt){ var bounds = evt.target.getBounds(), center = bounds.getCenter(); //map.setView(center, 14); map.fitBounds(bounds);
}
Developer | Moklick |
Username | moklick |
Uploaded | November 20, 2022 |
Rating | 3 |
Size | 33,698 Kb |
Views | 16,192 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Responsive Codepen Glitch | 2,838 Kb |
Hitman Loading Sequence pure css3 | 3,402 Kb |
CSS Map FX | 2,335 Kb |
... is watching you | 2,423 Kb |
Leaflet Transition Example | 33,818 Kb |
Berlin Building Map | 2,477 Kb |
Codepen Inception | 1,384 Kb |
Random Skyline | 2,353 Kb |
CSS Color Fading | 1,975 Kb |
3D Mapbox | 3,508 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Project -Show the Local Weather | Luciano_Britis | 2,583 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Prototype Responsive Homepage | Heyitsolivia | 7,677 Kb |
CSS Dynamic Width Square Div | Elleestcrimi | 2,861 Kb |
Rows with image hover effect | Amit-webdesigner | 12,875 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
CSS Colors | Alexpate | 2,232 Kb |
Ocean | Gordonnl | 2,817 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!