Giter Club home page Giter Club logo

svg-maps's People

Contributors

abiseban147 avatar alex11br avatar allcontributors[bot] avatar aref-lazrek avatar ashmidgley avatar ashvalejohn avatar avalladaresm avatar chitova263 avatar dependabot[bot] avatar disctanger avatar elidatamix avatar fbouhamd avatar fgomez828 avatar harukikinoshita avatar josepaiva94 avatar keatonboyle avatar michaelchukwu avatar mihai-ro avatar mweber-ak avatar noor-jafri avatar osyaldn avatar stefangomez avatar tae8838 avatar tyangjawi03 avatar victorcazanave avatar vongmengty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

svg-maps's Issues

Add Austria to Map collection

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

Missing css file

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'

ERROR #98123 WEBPACK Generating development JavaScript bundle failed Can't resolve 'svg-maps' in '/gatsby-project/src/components'

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!

Add Tanzania to Map Collection

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.

Adding id attribute to top level svg

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.

@svg-maps/cli binary does not exist

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.

Allow external packages

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:

  • Publish svgToJs.js ( + online tool?)
  • Update CONTRIBUTING.md

Found incorrect SVG path groups and definition

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.

  1. Fork this repo, fix svg data and make PR to here.
  2. Tell this situation to MapSVG project --however I couldn't find MapSVG's contact point.

Which one should I do the way?

Server Error SyntaxError: Unexpected token 'export'

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
  }
}))```

contributor username change

I have just changed my GH username; adding an issue to fix affected links here per contributing instructions.

Username changed from fatima3558 to fgomez828

Kenya svg-map

I would like to use these maps but I cannot find Kenya in the available countries. How can you help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.