Tag Info

New answers tagged

0

There are a couple of changes needed here to make the api return the correct information change sensor to false: incorrect https://maps.googleapis.com/maps/api/directions/json?origin=43.4833815,-80.539168&destination=43.47242353,-80.54613339&sensor=true&arrival_time=1417650300000&mode=transit correct and arrival time to departure time. ...


1

Geometries especially polygons will be are to place in Streetview mode (Earth API would be better). But Images can be overlayed into streetview This simple demo shows how to display an image overlay over a streetview and sync its movement (approximately) as the street view POV (point of view) changes This source is available from 'http://teammaps.com/' ...


2

What you're trying to do is called Reverse Geocoding, for which there is a sample in the documentation here: https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse That example is a simple one, which is easy to derive the main concepts from. However it gets place information from a coordinate which is typed in by the user, ...


0

So I work out this with the js code //<![CDATA[ $(function(){ jQuery(document).ready(function () { var map; var centerPosition = new google.maps.LatLng(35.335293,161.323242, 16.050432,33.815918); var Tokyo = new google.maps.LatLng(35.6895000,139.6917100); var NeYork = new google.maps.LatLng(40.712784,-74.005941); var London = new ...


0

I think that could be related with the pane each layer is taking not the order you add to the map. In torque for gmaps we use CanvasLayer and it adds itself a overlaysPane (https://github.com/CartoDB/torque/blob/master/lib/torque/gmaps/CanvasLayer.js#L54), I guess changing the pane or zindex or the layer would work


1

How can I pass the value from the HTML/JavaScript to the PHP file where I have the connection with database? If you use jQuery, you can use an AJAX call like this: $.ajax({ data: {lat : lat, lng: lng}, type: "POST", url: "script.php", success: function (e) { alert(e); }, error: function (er) { ...


1

here.com's API can, supposedly, give you up to 100 addresses within a circle. This is how I create the URL for the API call function makeURL ( point, radius) { return 'http://reverse.geocoder.cit.api.here.com/6.2/reversegeocode.json' + '?app_id='+config.Here.App_Id + '&app_code='+config.Here.App_Code + ...


1

It will never work. You are using code for the deprecated Google Maps API v2. Trying what's happened with the sample, I get a message like below Control is no longer supported in the Google Maps Javascript API v2. Please visit developers.google.com/maps/documentation/javascript/v2/v2tov3 to migrate your application to v3. I didn't dive into the ...



Top 50 recent answers are included