GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - libnando/brmap: Map of Brazil (html5, svg, js)

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
brmap.js
brmap.js
 
 
index.html
index.html
 
 

Repository files navigation

BrMap

Map of Brazil (html5, svg, js) - Interactive map for data visualizations. Bundled into a single Javascript file.

Intended to provide some data visualizations based on geographical data. It's SVG-based, can scale to any screen size.

  • Mapa do Brasil (HTML5, SVG, JS) - mapa interativo para visualização de dados. Empacotado em um único arquivo Javascript.

Getting Started

  1. Include 'brmap.js' on your page.
  2. Create a BrMap object, passing at least the parameter 'wrapper'.

Example:

<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<title>Brazil SVG</title>
</head>
<body>
	
	<div id="any-"></div>
	<div style="max-width: 600px;">
		<div id="br_mine"></div>
	</div>
	
	<script src="brmap.js"></script>
	
	<script>
		BrMap.Draw({
			wrapper: '#br_mine', 
			selectStates: ['sc'],
			callbacks: {
				click: (element, uf) => { alert(uf); },
				mouseover: (element, uf) => { 
					document.querySelector("#any-").appendChild(document.createTextNode(uf+" "));
				},
			}
		});
	</script>

</body>
</html>

Default Options

  {
   wrapper: null,
		selectStates: [],
		cssFill: {
			shape: "#D8D6D6",
			icon_state: "#BBBBBB",
			label_icon_state: "#777777",
			label_state: "#FFFFFF",
			selected: "#BBBBBB"
		},
		responsive: true,
		width: 500,
		callbacks: {
			click: function (element, uf) { },
			mouseover: function (element, uf) { }
		}
  }

Browser support

Safari Firefox Chrome IE8 IE9 IE10
✔ ✔ ✔ ✖† ✔ ✔

About

Map of Brazil (html5, svg, js)

libnando.github.io/brmap/

Topics

brazilcsshtmljavascriptmapmapasvg

Resources

Readme
Unlicense
Activity

Stars

24 stars

Watchers

2 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.