https://github.com/qeeqbox/worldmap
An interactive world-map that has been used in live Cyber Threat interfaces
https://github.com/qeeqbox/worldmap
cities countries d3 interactive worldmap
Last synced: 2 months ago
JSON representation
An interactive world-map that has been used in live Cyber Threat interfaces
- Host: GitHub
- URL: https://github.com/qeeqbox/worldmap
- Owner: qeeqbox
- License: agpl-3.0
- Created: 2021-07-30T21:15:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-31T23:10:15.000Z (almost 4 years ago)
- Last Synced: 2025-03-27T08:11:19.663Z (3 months ago)
- Topics: cities, countries, d3, interactive, worldmap
- Language: JavaScript
- Homepage:
- Size: 34.2 KB
- Stars: 12
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An interactive world-map that has been used in live Cyber Threat interfaces. This version is very responsive (drag, click, zoom, rotate, and scale). Also, you can move to any country by the ISO ALPHA 3 code.
If you are using the old qb-worldmap, please switch to the new version!
## Live
[https://qeeqbox.github.io/worldmap/](https://qeeqbox.github.io/worldmap/)## Invoke and Run
```html
```### qb_worldmap()
```js
// svg element ID
// world_type map type (still working on transitioning it)
// selected_countries, list of countries to highlight
// height map height
// width map width
// css_style custom style
// orginal_country_color countries colors
// clicked_country_color current country or a chosen one
// selected_country_color countries that are highlighted, verbose
// location world-atlas JSON location (CDN)
// verbose output verbose msgsqb_worldmap("#qb-worldmap-svg", null, ["156", "840"], window.innerHeight, window.innerWidth, null, "#cccccc", "#FFFF99", "#ff726f", null, true)
```### qb_worldmap.go_to_country()
```js
// country_code_3 ISO ALPHA 3 codeqb_worldmap.go_to_country("840")
```### qb_worldmap.get_current_subject()
```js
get_current_subject() This function will retrieve the current selected country
```## Resources
d3js.org## Other Licenses
By using this framework, you are accepting the license terms of each package listed below:
D3, fontawesome, jquery, javascript, topojson, world-atlas## Other Projects
[](https://github.com/qeeqbox/social-analyzer) [](https://github.com/qeeqbox/analyzer) [](https://github.com/qeeqbox/chameleon) [](https://github.com/qeeqbox/honeypots) [](https://github.com/qeeqbox/url-sandbox) [](https://github.com/qeeqbox/woodpecker) [](https://github.com/qeeqbox/docker-images) [](https://github.com/qeeqbox/seahorse) [](https://github.com/qeeqbox/rhino)