I am just beginning design work on a problem that I'm sure has been solved before.
In a web based application, I need to:
a) present a map
b) place a set of points (map-pins) on the map
c) allow the user at his browser to draw a simple closed curve on the map with his mouse
d) send the path of that curve back to the server
e) on the server, select from the set of points those that are within the closed curve.
What are the best API's to use for this problem? (I know I can and will do more research with Google, but I'm figuring there is probably someone who has done this that can give me some pointers to narrow my search space.)
Thanks.
Try http://www.geoext.org/ as a starting point and use http://geoserver.org/ on the backend.
Related
I am trying to expand on something I had working using just yaw and pitch (rotation and tilt) controls for a mapped sphere. I added a roll component which works for just moving the sphere, but not for keeping the gradients used (via hsl conversion) coordinated with the movements.
Looking for answers online goes straight into math (still struggling with trig) I can't follow well enough to apply to this case. Code gets hashed when inserted. Here is the link to a trimmed down version of the script:
3d sphere v.0.0.1
I honestly do not submit questions with the intent to answer them myself. I just keep hammering at a problem until a solution presents itself. Often answers come via the Filter Forge forums, sometimes through online searches (and often other stack overflow questions I did not find before submitting my own), and more often recently through simple trial and error.
So, yes, I came up with a solution. I was right that the order of operations was the key. There are probably other, better solutions out there, so please share if you have one. It could help whoever finds their way here.
You can see my answer here.
I have not found any resource that helps me in what I am trying to do. I want to make a simple program that, when running, will convert a key press to an analog input. For example, if I hold A with a game open, it will move my character slowly to the left. I don't need the analog to be dynamic, it can output at a constant amount. To add more clarity, this is so a friend without a controller can sneak in a Pokemon game on his emulator. I'd love it if someone had any ideas or could point me in the right direction. I'm familiar with programming, so I don't need much more than the method of how or where I can accomplish this. Thank you!
Do this,
you can make a program having key event listener, in that listener check whether w,
a,s,d is pressed if so then use API to press analog keys (like in java Robot API) and return true as a Response, run this program in the background.
I don't know this will worth doing but give it a try.
I have a set of routing data, in both CSV or KML format. It is basically a list of Lat / Lon and some supporting information.
I am looking for a way to display this as a route (e.g. with lines between the points in the order they appear in the list) online. Ideally a free option, as I'm not likely to need it again in the near future.
I have found hundreds (maybe an exageration) of ways of plotting the points, but not one that will include the lines. I'm trying to avoid the long and tedious process of converting one of these to an image and drawing the lines by hand.
Can anyone suggest such a site?
This question was asked on a google group for google maps. The user received an answer that pointed him towards the google map API. Given how other apps / web pages do this using google maps (never seen it done any other way) I would imagine this would be the best route to go down as its probably something they have built into the service.
https://groups.google.com/forum/?fromgroups=#!topic/google-maps-js-api-v3/F_iroBiBeww
I'm working with a project its related to Offline map application.Because of that I searched for offline map which shows the defined area. I used MapBox for offline mapping. I can add annotation on this map and draw lines.
But my requirement is offline map with routing. I was fed up to find a offline routing library or offline routing engine to embedded to Xcode.
Appreciate if any of you have any clue or sample project/code to implement this
Note : This question is related to my one. No one replied to this as well
Thanks.
Offline implies no internet, the iPhone is still able in most cases to get the users current location from the GPS. That means that you can be quite confidant that you can find out the current location of the user whilst offline.
The problem with offline routing is that the Phone is dumb, it only remembers the x amount of MB of data in terms of tiles to display.
Routing is something completely different, it takes a point A and B and works out the shortest, fastest, cheapest or all of those between A and B.
This takes a lot more then tiles to accomplish, after all if you think in terms of MVC, tiles are just the dump views, they don't know much about what's around them except what's inside of them. It would be the "controller" who would calculate routes, and for that you would need to be in possession of all the data spanning the desired area for routing.
For each mapping service you will find a different route, maybe not in terms of actual path, but in estimated time, effort etc, what this means is that if you have your own maps (offline in a database), it's up to you to use that data, so you should make your own routing algorithm which I'm sure isn't what you want to do.
So what are your options? At the moment this just isn't possible in the scope you want. Even if you had an offline maps database, you still need a routing algorithm.
In offline case also you can get the current location by using only GPS and you can draw overlay lines from current location to the interesting point for that you have to do some calculations
You can make offline routing by using graphhopper library by making graph data which contains (Street names, routes,edges) . Graph data is taken by .pbf file which can be taken by (Use this:http://download.geofabrik.de) and use commands(in Terminal) that was given by (https://github.com/graphhopper/graphhopper-ios/tree/master/graphhopper-ios-sample) to convert .pbf into graph data. Then we can make offline routing with its instruction (All given in graphhopper iOS sample).please refer that carefully. because i have done and finish my project successfully.
I am trying to build an application that allows the user to set pre-defined regions over a map background. Rather than specifying X,Y coordinates I want them to be able to draw the regions on top of the map and then hit save. I then want to record those shapes to the database so I can present them again later on.
I have been looking at tutorials such as this one:
http://www.html5canvastutorials.com/labs/html5-canvas-drag-and-drop-resize-and-invert-images/
How would I go about starting to create this kind of functionality? Where should I look? I understand it is a large question and perhaps a little too broad but a list of options to consider would be an amazing answer.
If anyone has any tips on where I can get started it would be much appreciated.
That's a job for javascript. Ruby and HTML cannot do this alone. Basically in your javascript code you will have to listen for some events that trigger your save action(the user resizes the image or drags it away), then collect the data that you want to save(image position & size I guess) and then send this to the backend via an AJAX request. Then you can store it in the db.