- changed status to open
- assigned issue to
- removed comment
produce map of ET users
It would be nice to produce an (autmatically generated) map of the locations of ET users
Keyword:
Comments (7)
-
reporter -
- removed comment
Replying to [ticket:260 knarf]:
It would be nice to produce an (autmatically generated) map of the locations of ET users
I recall having used a program (of yours?) that accepted latitude and longitude of various cities, then superimposed markers onto an image file of a world map at corresponding coordinates.
I could write a script that queries geolocation databases by IP, then plugs the returned coordinates into your map-making program to generate it dynamically. Were we to keep records of this data, we could even visualize the growth of the ETK user base.
-
- removed comment
I think it would be fairly straightforward to implement something like this using the [http://code.google.com/apis/maps/documentation/javascript/ Google maps API]. There is an example of how to do this in PHP [http://www.rogerethomas.com/b/76/php-map-users-ip-address-google-maps here].
-
reporter - removed comment
I do have a similar script, for the OpenLayers API (which can use google, but also openstreetmap). I should clean my mess up - but it still means that we need to have the coordinate data.
-
- removed comment
Daniel George, a grad student at NCSA produced such a map using Mathematica and the google maps API. He says
I just wanted to add that an interactive Google map can be made by running the attached code to export a CSV file, which can then be simply imported using the map maker here: https://www.google.com/maps/d/u/0/
The current map can be found at this link: https://wolfr.am/h9pXJpE0. It should be possible to embed this in the ET website. Each location is tagged with the name of the place as well.
-
In http://lists.einsteintoolkit.org/pipermail/users/2019-September/007016.html Erik says
My wife recommends "folium":
<https://anaconda.org/conda-forge/folium.> This is a Python package
talking to the "folium" Javascript library that displays the map.Here is a simple example:
<https://nbviewer.jupyter.org/github/python-visualization/folium/blob/master/examples/ContinuousWorld.ipynb.>In http://lists.einsteintoolkit.org/pipermail/users/2019-September/007015.html Niels says
The BHPToolkit map is made using the Google Maps - MyMaps service (www.google.com/mymaps <http://www.google.com/mymaps).> As we currently have a small number of users I have just been keeping the map up to date by hand. Unfortunately it does not look like there is a programatic way to use MyMaps (https://stackoverflow.com/questions/40488333/google-my-maps-api <https://stackoverflow.com/questions/40488333/google-my-maps-api).>
-
Possibly useful library: https://leafletjs.com/examples/layers-control/
- Log in to comment