Mapping - 4
How do I make an mapping - 4?
What is a mapping - 4? How do you make a mapping - 4? This script and codes were developed by Nick Walsh on 06 November 2022, Sunday.
Mapping - 4 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mapping - 4</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ canvas { background: #c9c4bc; display: block;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <script src='http://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js'></script>
<script src='http://s3-us-west-2.amazonaws.com/s.cdpn.io/68727/topojson.js'></script> <script src="js/index.js"></script>
</body>
</html>
Mapping - 4 - Script Codes CSS Codes
canvas { background: #c9c4bc; display: block;
}
Mapping - 4 - Script Codes JS Codes
(function() { var canvas, circle, ctx, height, offices, path, projection, width; offices = [[-81.379092, 28.542884], [-81.379002, 28.540481], [-81.369515, 28.538479]]; height = window.innerHeight; width = window.innerWidth; projection = d3.geo.mercator().center(offices[offices.length - 1]).scale(400000).translate([width / 2, height / 2]); canvas = d3.select('body').append('canvas').attr('height', height).attr('width', width); ctx = canvas.node().getContext('2d'); path = d3.geo.path().projection(projection).context(ctx); circle = d3.geo.circle(); d3.json('https://s3-us-west-2.amazonaws.com/s.cdpn.io/68727/orlando.json', function(error, orlando) { var i, len, office, results; ctx.beginPath(); path(topojson.feature(orlando, orlando.objects.neighborhoods)); ctx.fillStyle = '#dcd8d2'; ctx.fill(); ctx.lineWidth = '2'; ctx.strokeStyle = '#c9c4bc'; ctx.stroke(); ctx.beginPath(); path(topojson.feature(orlando, orlando.objects.streets)); ctx.lineWidth = '1.5'; ctx.strokeStyle = 'rgba(0, 0, 0, 0.08)'; ctx.stroke(); ctx.beginPath(); path(topojson.feature(orlando, orlando.objects.lanes)); ctx.lineWidth = '6'; ctx.strokeStyle = 'rgba(0, 0, 0, 0.1)'; ctx.stroke(); ctx.lineWidth = '3'; ctx.strokeStyle = 'rgba(255, 255, 255, 0.9)'; ctx.stroke(); results = []; for (i = 0, len = offices.length; i < len; i++) { office = offices[i]; ctx.beginPath(); path(circle.origin(office).angle(0.0005)()); ctx.fillStyle = '#3388a7'; ctx.fill(); ctx.lineWidth = '50'; ctx.strokeStyle = 'rgba(51, 136, 167, 0.2)'; results.push(ctx.stroke()); } return results; });
}).call(this);
Developer | Nick Walsh |
Username | nickawalsh |
Uploaded | November 06, 2022 |
Rating | 3 |
Size | 3,316 Kb |
Views | 18,216 |
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 |
Swan | 3,872 Kb |
Mapping - 2 | 2,925 Kb |
Sliding Tiles | 2,978 Kb |
Mapping - 3 | 2,984 Kb |
Extend Interpolation | 2,493 Kb |
Constellations | 3,361 Kb |
Travel | 9,065 Kb |
Animations without d3-timer | 2,803 Kb |
Project DNA | 2,925 Kb |
Radar | 4,953 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 |
Under construction | GhostRider | 1,642 Kb |
Image grid with captions | Mchernin34 | 2,222 Kb |
Another brick in the wall | Fivera | 1,955 Kb |
A Pen by Anoop | Anoopjohn | 330,760 Kb |
A Pen by Theun | Tjoen | 6,152 Kb |
Drag n Drop | Martin42 | 2,594 Kb |
P1 | Vivi_Lai | 1,533 Kb |
Sticky div | Kaslab | 2,225 Kb |
Growing Root - Scroll control - CANVAS | Cjonasw | 2,342 Kb |
Base64 SVG Me | MrBambule | 44,786 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!