I have read up on GPS Real time tracking and found out several things about it,mostly requiring PHP,but I need use only JavaScript.
As regards to my question, is it possible to do so with just html and JS, using markers or anything else to populate the Bing Map when you move anywhere in the city? Need some help on this, Thanks!
PS: I try to use it on WP8.1, and I am already succeed to add Bing map to it using html5
My solution
and if there is a solution on Win8.1, it's Ok, just how do it?
Yes. In HTML5 you can use the geolocation class: http://www.w3schools.com/HTML/html5_geolocation.asp or since you are using Bing Maps you can use the GeoLocationProvider class: http://msdn.microsoft.com/en-us/library/hh125833.aspx
Make sure you enable share of locations in your app manifest or it will silently fail to get the users location.
This would work in both WP8.1 and Win8.1, and browsers as well.
If you want you can also do all of this in a universal app using .NET.
Related
I'm trying to find a way to create a new google calendar event using cordova/phonegap. I have tried to use Google's JavaScript Calendar api for this, but for the OAuth Client ID I must specify an authorized javascript origin, and I am not sure if I can do that with cordova (or if I can, I'm not sure what the URL would be).
If there is a plugin, etc. that could create the event I could use that, if not if you could supply code and instructions for generating the key that would be very helpful.
Thank you all in advanced! =)
I think this should work. http://phonegap-tips.com/articles/google-api-oauth-with-phonegaps-inappbrowser.html
Also a dup of this?
Lately I have been working on a indoor navigation project for a school. It all works but I think it can be faster and easier to edit, so I began searching and came upon iD editor (which is made (?) by OpenStreetMap).
It looks very good. The only thing I can't find is if I can use it with my own maps.
Does anyone know if it is possible, and if not, does anyone know an alternative?
Thanks in advance,
Lars Jansen
The Netherlands
If you just need a simple overlay with some markers or routes then you can use Leaflet or OpenLayers.
It is also possible to create a completely personal map, but it will require to set up a complete backend. iD is just the editor. If you want to see the resulting map in you browser you will need:
a postgres database for storing the map data
a renderer for creating images (tiles) from this database, for example Mapnik
a java script library like Leaflet or OpenLayers for creating a browsable map from the rendered tiles
possibly a geocoding service like Nominatim if you need a search function
As you can see, OSM's main goal is not to create personal maps. Still it is possible but requires some effort to set it up (switch2osm has some useful guides).
Also take a look at similar questions on help.openstreeetmap.org, including possible alternatives:
https://help.openstreetmap.org/questions/27621/personalised-maps
https://help.openstreetmap.org/questions/22827/using-id-editor-to-for-personal-alternative-maps
https://help.openstreetmap.org/questions/11069/does-openstreetmap-have-a-my-places-feature-like-google-maps
https://help.openstreetmap.org/questions/24591/create-my-own-addresses-roads-and-ways-on-a-custom-world-map
https://help.openstreetmap.org/questions/4496/how-to-create-fantasyimaginary-maps-with-openstreetmap
I'm not familiar with this editor specifically, but there are generally two ways to add custom maps:
Image overlay: for OSM it looks like its called Open Layers: http://wiki.openstreetmap.org/wiki/OpenLayers
Custom WMS source: probably overkill - although it looks like partial local caches are supported- so that might be just what you're after: http://wiki.openstreetmap.org/wiki/Creating_your_own_tiles
Sorry I can't help more- good luck!
I am trying to create functionality like can be found in this example...
http://googlemapsapi.blogspot.com/2008/05/love-my-maps-use-its-line-and-shape.html
Where the user of the page can draw a polygon on the map by clicking to create the points in the polygon. It seems like all the examples I'm finding of this functionality are in v2 of the API and whenever I try to mimic such functionality using v3 I get a bunch of errors saying objects don't exist and so on. Is it possible to create this same functionality using v3 of the framework? Or will I have to use v2 of the framework.
Thanks
There was a lot of namespaces and object names that changed from v2 to v3, so you won't be able to use the code as it is. But it's not only a name change that is required, the functions have changed slightly as well. I'm pretty sure you won't be forced to use v2 to draw lines, although it will take some effort to copy the functionality to a v3 app.
Here is the scenario that i want take two addresses dynamically from user, consider one of them as source and other as destination and find driving directions between source and destination.
i googled and got some stuffs not familiar to me..such as writing script using Google Maps JavaScript API V3, and the direction out put will be in json or xml format...i have tried google.map.directionrenrender and directionservice api's in my code but it is saying no such classes in google.map..as i am new to scripting language i am not understanding how to start ....i am using eclipse ide, where i want to build an android app that takes addresses and gives driving directions between those two points..
i want the program almost similar to this Google map driving direction source code for their example? but here they have used some html code and why that is actually required..?
please help me in writing the code
Thanks in advance
To open up Google Maps with directions, start a new Intent using a URL like this:
http://maps.google.com/maps?saddr=%s&daddr=%s
Replace each %s with a string like "x,y" where x and y specify the latitude and longitude. If you want directions from the current location, leave the saddre parameter blank.
This won't work on phones that don't have Google Maps installed, and in those cases will open the browser.
I want to show the location of my business on my website using google maps. Instead of creating the marker, infowindow, etc... by hand, I would like to reuse the one found in Google Local business listings.
For instance, this business could use this map. The advantages are numerous : it is already done, it will be updated when you update the listing, it has directions, etc...
Does anybody know how to do that using the JavaScript API (v3) ? I could obviously use the iframe code they provide, but I would love having a bit more control on the result, especially the controls.
You can't. You can either use the embed as is, or build a custom map using the JavaScript API.