From 94840e5cb3843834f5bc07c355523342e52fc275 Mon Sep 17 00:00:00 2001 From: Shaun Hoffer Date: Thu, 25 Jul 2024 16:18:41 -0400 Subject: [PATCH] uploaded files --- README.md | 3 ++ backcode.txt | 32 ++++++++++++++++++++ index.html | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 README.md create mode 100644 backcode.txt create mode 100644 index.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..03b0ead --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# usmap + +A simple map with Argis \ No newline at end of file diff --git a/backcode.txt b/backcode.txt new file mode 100644 index 0000000..d719bf5 --- /dev/null +++ b/backcode.txt @@ -0,0 +1,32 @@ +var highlightStyle = { + color: '#2262CC', + weight: 3, + opacity: 0.6, + fillOpacity: 0.4, + fillColor: 'Gray' +}; + +var defaultStyle = { + color: "#5b85fc", + opacity: 0.7, + weight: 0.7, + fillColor: "White", + fillOpacity: 0.1, +} + +//L.geoJson(counties, {style: defaultStyle, onEachFeature: hoveron}).addTo(map); +//L.geoJson(statesData, {style: defaultStyle}).addTo(map); +// L.geoJson(states, {style: defaultStyle}).addTo(map); + +// Function to bind popup to the geoJason data. +function hoveron(feature, layer){ +layer.on('mouseover', function(e) { + layer.setStyle(highlightStyle); +}); +layer.on('mouseout', function(e) { + layer.setStyle(defaultStyle); +}); +}; + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..ba675a4 --- /dev/null +++ b/index.html @@ -0,0 +1,82 @@ + + + +US Map | Shaun + + + + + + + + + + + +
+ +
+ + + \ No newline at end of file