Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User map for Liechtenstein doesnt show #321

Closed
ThaDafinser opened this issue Jun 18, 2014 · 10 comments
Closed

User map for Liechtenstein doesnt show #321

ThaDafinser opened this issue Jun 18, 2014 · 10 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@ThaDafinser
Copy link
Contributor

Hello,

the user map is a really great feature.
For for Liechtenstein, i cant zoom in.

I see it empty:
europe
liechtenstein

@ThaDafinser
Copy link
Contributor Author

Just seeing that there is the .svg missing
https://github.com/piwik/piwik/tree/master/plugins/UserCountryMap/svg

ping @gka how can i create it?

@mattab mattab changed the title 2.3.0 User map for Liechtenstein doesnt show User map for Liechtenstein doesnt show Jul 2, 2014
@mattab mattab added this to the Mid term milestone Aug 3, 2014
@sgiehl
Copy link
Member

sgiehl commented Feb 8, 2015

There are other SVGs missing, aswell. Such for very small countries like Mauritius, Martinique,...
@gka Can you generate the missing ones, or provide a way how to do that?
If needed I can look up the country codes that are missing.

@mattab mattab modified the milestones: Short term, Mid term Feb 9, 2015
@mattab
Copy link
Member

mattab commented Feb 9, 2015

edit refs #11929

@sgiehl not sure if Greg is available he may be busy. Do you know if maybe the latest version of Kartograph would have the map for Liechtenstein? if so we could maybe upgrade. if not, it would be a pleasure to sponsor this improvement and others in Kartograph :-) cc @gka

@sgiehl
Copy link
Member

sgiehl commented Feb 10, 2015

I'll give it a try to set up kartograph and see if I'm able to generate the missing SVGs.

@sgiehl
Copy link
Member

sgiehl commented Feb 10, 2015

Ok. Seems https://github.com/gka/piwik-map-generator was used to create the SVGs. But I'm not able to regenerate those using that and the latest kartograph.
It seems the latest shape files differ as there are errors occuring while generation. Seems the configs needs to be adjusted.
Tried to fix some parts in a fork, but the generated maps differ a lot from the ones used by piwik.

@mattab mattab modified the milestones: Short term, Mid term Apr 7, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@ThaDafinser
Copy link
Contributor Author

@sgiehl
Copy link
Member

sgiehl commented Apr 3, 2017

@ThaDafinser We're aware of this, but we have no capacities free to handle that. Would you be keen to give it a try and replace Kartograph maps with the suggested one?

@ThaDafinser
Copy link
Contributor Author

No problem. Just wanted to note it here, since i just came back to some old issues.

I will give it a try, to get running.

@ThaDafinser
Copy link
Contributor Author

When using the same source for the GEO data (which is also partly outdated) https://github.com/fraxen/naturalearth_wagnerVII

After installing mapshaper i could generate the 2 levels with the commands below.
With some further tweaking, i think this could be a solution to generate the maps again.

step1) worldmap

mapshaper download/ne_50m_admin_0_countries.shp -proj natearth -filter-islands min-vertices=80 -simplify 30% -svg-style fill=#fff stroke=#000 -o world.svg format=svg

step2) country only

mapshaper download/ne_10m_admin_1_states_provinces.shp -proj natearth -filter-fields iso_a2 -filter '"LI" == iso_a2' -svg-style fill=#fff stroke=#000 -o country.svg format=svg

step3) region (broken in powershell...bbox needs somehow escaping)

mapshaper download/ne_10m_admin_1_states_provinces.shp -proj natearth -clip bbox=-20, -38, 53, 40 -svg-style fill=#fff stroke=#000 -o region.svg format=svg

image
image

@sgiehl
Copy link
Member

sgiehl commented Jun 13, 2022

closing in favor of #11929

@sgiehl sgiehl closed this as completed Jun 13, 2022
@sgiehl sgiehl added the duplicate For issues that already existed in our issue tracker and were reported previously. label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants