[OpenMap Users] A few random questions

From: Gary Briggs <chunky_at_icculus.org>
Date: Sat, 6 Jun 2015 18:31:21 -0400

So, a few things have come up recently and I'm not clear how best to
achieve these things. Any pointers would be appreciated:

* Is it possible to make the map update/fully re-render as it's being
    dragged with the mouse, as opposed to only when you let go?

* Speaking of mouse input: I'm reading the developer guide, and I don't
    really "get" how to actually implement a mouse listener. Examples
    of things I'm currently trying to do:

 - I have a layer that is made up of a series of points [OMPoint],
     connected with edges [OMLine]. I want a user to be able to click
     on the map [or only on a node], and have the nearest node to
     that point be "selected", then drag the mouse around the map [not
     necessarily clicking] and run an algorithm for my graph, highlighting
     the best path along my graph to get from the original point to
     the nearest point to the current mouse position. My algorithm is
     fast-ish, but not quite interactive-real-time fast.

 - I have a map of the world being shown as a shapefile [the one included
     with openmap, actually]. User clicks on a country, I want to
     highlight that country.

* If I had a FORTRAN program that runs at the command-line, and I wanted
    to add features to that program to have it render to a map as it
    runs... how would I go about doing that?

  - Is it a better investment of time to give up on that and find
     something, anything, else to do? This is just a blue-sky idea...


Cheers!
Gary

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sat Jun 06 2015 - 18:32:23 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT