Dashboard - map that shows rig locations and wells - javascript

I've been experimenting with different dashboards. JDASH for example. I need to come up with something that shows different locations in Canada and US and show how many wells are at these locations and on these dates.
Any ideas on how the easiest way would be to go about achieving this?
I have the database setup with all the user input information.. locations, gps cords etc... just need to know how to put that on a map

What you want to do can be achieved with DBxtra, you need to look into the Pivot grid element and use the map in there, the map accepts anything from GPS coordinates to city/country names, you just need to create a query from your database.
If you feel like using a full reporting/dashboarding solution is an overkill, you may be able to do the same with Bing or Google maps using their Javascript APIs.

Related

Is it possible to use the geocoder API/search box to search for markers on a map?

I will be using Mapbox within an Angular app with a large number of markers on the mapbox instance (in the order of several thousands) and would like users to be able to use a search box to search among the map markers (which will have, at the very least, a unique name and a set of coordinates, often also an address). Is this possible at all?
Yes, it is possible with use of filter property. It works very well on big sets of data
Mapbox: filter | help

Best way to store geolocation coordinates into a websql database, also to work in google maps once output

Could someone suggest the best format to store geolocation coordinates into a websql database? Would it be better to grab the values from an array and store in the format: (52.8165972, -2.1174389000000247),(52.8165972, -2.1174389000000247),(52.8165972, -2.1174389000000247), with each bracket representing a set of coordinates (lat,lng), or would it be better to separate lat and lng values into their own separate columns?
Please bear in mind I will be using the coordinates stored within this database to plot a polyline onto Google maps. The reason I currently have the structure stated above, is because Google maps expects the format of the path values to be (lat, lng).
The current concern is outputting from the database column, all the values in that format, so for example if it's possible to output as (52.8165972, -2.1174389000000247), it may be possible to work with it more easily.
Any advice would be highly appreciated!
EDIT: Additional information about the whole project
I am building an application that is intended to track a users location whilst on walks. The mechanics behind the tracking and drawing a polyline in real-time all work perfectly. Upon "finishing" the walk, the user is taken to a second screen where additional details can be added such as walk titles, descriptions. Information such as the polyline path is output from an array onto the map so that the user can see it. Upon "saving" from this page, all the data is collected both from the arrays for that session and any information entered on that page and stored into its own auto incremental row in the table.
There is another page where the users can view all the walks they have undertaken, this will list out all the individual walk details, and also display a map with that particular walk's polyline added.
You have a range of options.
You could separate them out into individual points (lat/lng pairs) and store each in its own column but this would require you to create as many columns as there are points in your longest polyline. They would be more difficult to query like this.
You could split each pair up into a lat column and a lng column for each point this would be like the previous option but with twice as many columns.
Or you could store the whole polyline in a single column.
I would recommend that last option as it results in a database structure that is more predictable. It is less easy to query to lat/lng data but there are ways around this problem if you can't ignore it.
If you feel the need to query the database by coordinates I suggest you create a few of extra columns that describe a bounding box inside which the polyline fits and/or its centre point.
These would be stored as decimals. See this post for details of the precision you feel is required for your application.
How accurately should I store latitude and longitude?
This will allow you to search for lines or points within a rough area which can be further refined using javascript.

How to make selectable states in Australia (web map)?

The following link provided is something that I am after for a web mapping project.
http://developers.arcgis.com/javascript/samples/fl_dgrid/
The following link contains the utilisation of ESRI base layer map, and what seems to be a layer polygon possibly created in Arcmap, which allows users to select individual states, which when selected displays in a table.
I am trying to achieve the similar user interaction but just for Australia; for example, users will be able to select Western Australia, Northern territory est, which would then show which state the user selected in a table and generate data/information.
So far from my understanding, it seems as though ArcGIS for server could have been used in order to save the feature polygon layer, which is then called as a service from the coding and generated onto the base layer map of ESRI.
I am wondering if anyone can help me in terms of how to get this user interaction working just for a map of Australia. Would I create the polygon layer in arcmap, make that as a service using ArcGIS for server and then call it from coding?
Also, for the actual selection of each state and showing in a table, my understanding is javascript is used?
I guess I am just trying to get a more thorough understanding so I can go on from there, in order to create something similar just for Australia. Any help will be much appreciated.
Thanks in advanced.
There are probably a few different ways to go about getting this to work depending on what data you have available to you. My answer is based off what I see in the example you posted.
Assuming you had the polygons for Australia available to you, you should be able to modify the example and have a working version pretty easily.
Grid
For the grid, it looks like they are using the dgrid plugin which unfortunately I have no experience with so you would need to look up info on that.
Map
If you are wanting to have a polygon shown for each state/territory then you would need to have a service with all the polygon objects available to you. Not sure if this is already available or if you would need to create each polygon somehow.
When the map loads you would want to load all the polygons. When a user clicks on a state you would want to create a query to select the given polygon so that it is highlighted (they are using the OBJECTID field in the example which would be unique to each polygon). When selecting the polygon in the map you would also select the row in the grid(This is also done by the ID aka OBJECTID field from the polygon).

Can i create get directions by using OpenStreetMap data on the Google Maps? How?

I am starting to create a site that finds users location and if he want to go to another place, he will have to click one balloon to get directions into that place. I am doing everything on google maps, but i want to use get direction data from openstreetmaps. How can i get data from OpenStreetMaps into Google Maps to draw the route? Please help me for this issue.
Best regards
Choose a OSM routing service that offers GPX export and display the result on top of a Google Map. Although I don't understand why anybody should want that because it may create confusing results as already pointed out by user geocodezip.

Create a route using a list of coordinates in Google Maps

I have a list of lat,lon coordinates as result of tracking a bus. I'm showing the route using PolyLine to create a line to connect "the dots" but because of the accuracy these dots aren't exactly by the street, and when you zoom in it is more obvious.
What can I do to show the route by the street?
This is what I have right now (There are 2 lines because the bus did 2 turns. It won't show like this in the final product)
And this is what I need.
Thanks for your help.
I would suggest reducing the polylines to the minimum number of waypoints required to make the DirectionsServide create the same route.
example from this similar question
example using coordinates rather than addresses
Search for 'snap polyline to road using google maps api v3' for similar discussions.
There doesn't appear to be a straightforward API service to do this and you would need to reduce your route to significant changes in direction rather than every wiggle.
You might add a star to the issue in the 'Google Maps API bug reports and feature requests' database
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3824
and possibly add a new issue since your problem is somewhat different

Categories