ubukawa / cartotile_trial

This is for trial
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Display an popup on click efficiently #7

Open hfu opened 4 years ago

hfu commented 4 years ago

My comments:

  1. First, pop-up on click is a bad user interface in web maps. If we can avoid it, let's avoid it.
  2. For PCs, pop-up on hover is a better option. However, hover does not work with smartphones.
  3. A better option is not to use balloons.

@ubukawa maybe you can start from Get features under the mouse pointer to render HTML content from web map features.

Please also try to describe the requirements before developing the code, if you are working on implementing it for the clients. If you are coding just for learning, it is still good to write requirements.

ubukawa commented 4 years ago

Thank you for your inputs. I will explore the "Get features under the mouse pointer" My client requested this types of pop-up function, but if we can propose alternate option, it would be okay.

I first thought that we could have a popup function like this. https://maps.gsi.go.jp/#15/36.104665/140.086348/&base=std&ls=std%7Cexperimental_landformclassification1&disp=11&lcd=experimental_landformclassification1&vs=c1j0h0k0l0u0t0z0r0s0m0f0&d=m

And I thought that the stat data of SDGs is somehow complicated ant making graphs from it on the web would be not easy for me. I would remove this part. So, I tried to separately prepare some graphs. ("indicator number" and "country name") Example: https://github.com/ubukawa/cartotile_trial/tree/master/stat_data/graph

So, the functional requirement, my personal idea, would be like this:

1. By clicking map, "country name" is acquired. 2. Together with the "indicator number" of the map, the graph ("indicator number"_"country name") will appear somewhere, as a pop-up or somewhere in html. Thank you!