victorcazanave / svg-maps Goto Github PK
View Code? Open in Web Editor NEW:earth_africa: A set of SVG maps
:earth_africa: A set of SVG maps
State border is not adding in this counties us map. Please help me how to draw/add state border in the counties us map @avalladaresm
Could you merge France regions and departments into a unique file, maybe by creating a third France
file ?
Interesting resources:
data.gouv.fr : Cartes des régions et départements
Is your feature request related to a problem? Please describe.
Currently, Austria is not implemented.
Describe the solution you'd like
Austria should be added to the list. It is a very small country with 9 states and should not take too long to implement.
Additional context
Ref.: https://en.wikipedia.org/wiki/Austria
Hello, no Puerto Rio
The is no CSS file in the folder 'lib', there is only one SASS file in the src folder
Problem => 'Could not find module in path: 'react-svg-map/lib/index.css'
https://github.com/ziyadbasheer/svg-maps
I've forked the repo, added a map, but can't seem to get it to work:
ERROR #98123 WEBPACK
Generating development JavaScript bundle failed
Can't resolve 'svg-maps' in '/gatsby-project/src/components'
File: src/components/worldmap.js
failed Building development bundle - 6.018s
Line in question is: import world from 'svg-maps' within the worldmap.js component.
I've been banging my head against the wall for 3 hours now trying to figure it out. Any help is super appreciated, thanks!
Is your feature request related to a problem? Please describe.
Currently, Tanzania is not implemented.
Describe the solution you'd like
Tanzania should be added to the list. I'm here to show that there's a demand for it.
Additional context
Ref.: https://en.wikipedia.org/wiki/Tanzania
https://simplemaps.com/resources/svg-tz
I will also be willing to provide necessary support to see this through.
I am not very knowledgeable to create my own svg and therefore I ask the community to contibute.
Is there any guideline how to create a custom maps?
I'm wondering if you'll be willing to extend a list of svg attributes with an id. This is a requirement for svg file to be used in <use />
and it would allow to import and style maps at large like
<svg viewBox={map.viewBox} xmlns="http://www.w3.org/2000/svg" className="map">
<use href={mapFilepath + '#world'} fill="gray" />
{
map.locations
.filter(loc => targets.has(loc.id))
.map(loc => {
return <path key={loc.id} d={loc.path} fill="red" />
})
}
</svg>
I'm willing to provide a PR, but I've noticed that contribution guideline specifically mentions not to do such a change.
When I use npm install @svg-maps/cli
there is no svg-maps binary created in node_modules/.bin
that I am able to use.
Tried with version ^1.0.0-beta.2
on Linux and Windows.
I am trying to add span text onto the individual states to indicate States and potentially number of cities. Do you know if there is an easy way to do this?
In order to keep this repository organized, people could be allowed to publish their own packages (for very specific maps, custom coding rules...), then a link could be added in the main README.
TODO:
svgToJs.js
( + online tool?)CONTRIBUTING.md
Hi, I'm currently working on my project using @svg-maps/Canada. Do you have any plans to add a different map projection other than the existing one? It would be better if we have Lambert's projection of Canada. Thanks!
https://en.wikipedia.org/wiki/File:Canada_(geolocalisation).svg
Hi.
I found a wrong data on the map of Japan.
SVG path elements are grouped by prefectures, it's nice.
But some paths are incorrectly grouped next to the prefecture.
Specifically, some islands of Kagoshima prefecture belongs to Okinawa prefecture incorrectly.
So, I decided to correct this fault, but I couldn't figured out how I fix it.
Which one should I do the way?
Hi,
I'm trying to import France regions in one of my Next.js application and getting this error:
Server Error
SyntaxError: Unexpected token 'export'
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
external%20%22@svg-maps/france.regions%22 (1:0) @ eval
> 1 | module.exports = require("@svg-maps/france.regions");
My component
import React, {useEffect,useState} from 'react'
import France from '@svg-maps/france.regions';
import { SVGMap } from "react-svg-map";
import "react-svg-map/lib/index.css";
const Home = ({properties}) => {
const [show, setShow] = useState(false);
const handleClose = () => setShow(false);
return (
<SVGMap map={France} />
)
}````
next.config.js file in root
```const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')
const path = require('path');
const withImages = require('next-images')
//https://github.com/shadowwalker/next-pwa
module.exports = withPWA(withImages({
pwa: {
disable: true,//process.env.NODE_ENV === 'development',
dest: 'public',
runtimeCaching,
},
exclude: path.resolve(__dirname, 'src/assets/svg'),
webpack(config, options) {
return config
}
}))```
I have just changed my GH username; adding an issue to fix affected links here per contributing instructions.
Username changed from fatima3558 to fgomez828
I would like to use these maps but I cannot find Kenya in the available countries. How can you help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.