[svlug] Map program
Steve Litt
slitt at troubleshooters.com
Tue Apr 25 12:31:40 PDT 2017
Thanks Ivan!
The links you mentioned gave me a framework for thinking, and led me to
some specific possibilities, including javascripting stuff inside an
<svg> element. Your information gave me a direction to go, after which
the rest was pretty much pre-ordained, and I now have a "hello world"
front-end-only clickable map at
http://troubleshooters.com/codecorn/clickmap/hello1.htm
Thanks for the help.
SteveT
On Mon, 24 Apr 2017 01:10:43 +0200
Ivan Sergio Borgonovo <mail at webthatworks.it> wrote:
> Once upon a time there were HTML image maps.
>
> Programs as KImageMapEditor or gimp could help you to built them.
>
> Since you'll need JS anyway I'm not even sure if they could be the
> most efficient way to achieve your target, but somehow you could
> start from HTML image maps to have at least a fall back alternative
> to a complete JS solution.
>
> A more modern approach could possibly be to use the HTML5 canvas.
>
> Clickable maps are a common problem for web programmers and there
> should probably be some examples and some library.
>
> A quick google search came up with
>
> http://www.outsharked.com/imagemapster/
>
> https://makeaclickablemap.com/
>
> http://www.image-maps.com/
>
> https://github.com/kemayo/maphilight
>
> https://developers.google.com/chart/interactive/docs/gallery/geochart
>
> http://createaclickablemap.com/
>
> ...
>
>
> On 04/24/2017 12:31 AM, Steve Litt wrote:
> > Hi all,
> >
> > I need to write a web application that displays a map of the United
> > States, part of Canada, Alaska, part of the Atlantic, Pacific, and
> > Gulf of Mexico, and when the user clicks on a state, ocean, or
> > Canada, return the result. For instance, when the user clicks on
> > Montana, it should return either the string "Montana" or some sort
> > of key whose value is Montana.
> >
> > My program should also be able to change the color of any state or
> > combination thereof at the drop of a hat.
> >
> > My program does a lot of other stuff, but once my data is in terms
> > of the name or key of a state or ocean, I know how to handle it. My
> > question is how to assign a keystroke to a state, and how to change
> > the color of a state.
> >
> > Thanks,
> >
> > SteveT
> >
> > Steve Litt
> > April 2017 featured book: Troubleshooting Techniques
> > of the Successful Technologist
> > http://www.troubleshooters.com/techniques
> >
> > _______________________________________________
> > svlug mailing list
> > svlug at lists.svlug.org
> > http://lists.svlug.org/lists/listinfo/svlug
> >
>
More information about the svlug
mailing list