spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » GOOGLE MAPS » Page 1
use cases of googleMaps distanceMatrix api?
Consider the M x N case: You have a delivery merchandise (pizza joint) with M not-currently-occupied vehicles in a predefined area, and N different target locations to serve at a given slice of time. In order to find the optimal route to N locations for your vehicles, you could run a distance matrix query and match the closest driver to the appropriate itinerary. Second example: As a regional b

Categories : Google Maps

USGS Kml Layer is not displaying colors or sizes properly
IconStyle/color and scale are not supported by google maps: https://developers.google.com/kml/documentation/kmlelementsinmaps Using external styles minimizes the size of these frequently changing feeds. USGS offers GeoJSON(P) feeds for embedding in javascript maps, as described on this page: https://developers.google.com/maps/tutorials/data/importing_data#requesting_jsonp USGS GeoJSON feeds are

Categories : Google Maps

Embed Google "my map" on Google Site but No Maps Found
I found a way around it. Your map has to be set to public then on your map description (top right) click on the folder icon next to "Add Layer" and choose "Embed on my site". Copy the html. Open your site and click the HTML button while in edit mode. Paste the HTML and the map will show up. If anyone has an answer to why the maps don't show up in the my maps tab, I would still like to know.

Categories : Google Maps

Google maps gradient polylines: need for a hack?
So, here is something that is more than a comment, so I post it as an answer, realizing it might not be THE answer, and I don't expect anyone to honor this as such: So, rather than drawing a polyline like this: line = new google.maps.Polyline({ path: path, map: map }); I came up with this: function multi

Categories : Google Maps

Google places api not returning postal code for some places
There is a postal code for this address, but only a part (I guess it's called FSA-code). The function didn't recognize this part, because for this address the returned types-array is: ["postal_code_prefix", "postal_code"] ...but the function only checks the first item of the types-array. possible fix: function fillInAddress() { // Get the place details from the autocomplete object. var

Categories : Google Maps

How do I make Google Maps controls responsive?
It's quite simple, set the width of the HTML-elements to 100%. Be sure that these controls dont overlap with the default-controls. Demo: http://jsfiddle.net/doktormolle/16r1777q/

Categories : Google Maps

google maps web finds an address/place, but neither places API nor geocoding API finds it
The "Oahu" is confusing the geocoder (and the places API). If I use "526+Kawailoa+Road,Kailua,HI+96734" with the geocoder, I get a result If I use that address with the places API, I also get a result

Categories : Google Maps

Google map in responsive map doesn't center map
Create a bounds global variable. Extend the bounds object when adding your markers. On window resize, trigger a map resize and make the map fit the bounds object. Global variable: var bounds = new google.maps.LatLngBounds(); Extend the bounds in the setMarkers function: for (var i = 0; i < locations.length; i++) { var beach = locations[i]; var myLatLng = new google.maps.LatLng(be

Categories : Google Maps

Localizing Google Maps when the API file isn't called
The maps api has a separate js file for each language, and the localization is part of the url, not the query string. ie: https://maps.gstatic.com/maps-api-v3/api/js/18/15a/intl/es_ALL/main.js When you are referencing the file: https://maps.googleapis.com/maps/api/js?language=es it bootstraps the above version behind the scenes.

Categories : Google Maps

Google Maps API - Showing only the traffic layer?
On the styled map wizard, this gives me a blank map. [ { "stylers": [ { "visibility": "off" } ] } ] proof of concept fiddle code snippet: $(function() { var map = new google.maps.Map(document.getElementById("map"), { zoom: 12, center: new google.maps.LatLng(34.0204989, -118.4117325), mapTypeId: google.maps.MapTypeId.ROADMAP, disableDoubleClickZoom: true,

Categories : Google Maps

Adding text to google maps polyline icon
SO is not a search-engine for any kind of ressources, here an explanation how you may easily create these paths on your own instead(using inkscape ) open a new document use the text-tool(there's a button with an "A" or hit F8) and type the desired number/letter hit F1 and move the object to the top-left corner of the drawing from the top-menu select path->object to path save the document as pl

Categories : Google Maps

add an address search to a custom google map
Check out the sample code in the documentation. It adds a search box to the map, which is what it sounds like you're looking for. If you want to be able to get directions or calculate distances, you may have to use other libraries/apis, though Google Maps v3 does already have a lot of the methods already (like computeDistanceBetween).

Categories : Google Maps

OTP encoded polyline same as Google encoded polyline?
Late answer, but yes, Open Trip Planner returns google Encoded Polyline format. You can check this link for reference https://groups.google.com/forum/#!topic/opentripplanner-dev/kuR6fM3fY7I

Categories : Google Maps

getting image url from google contact api
Send a GET request with the userEmail and contactID. Assuming that the contact has a photo, you'll receive a link which you can use to access the photos. Keep in mind this requires authentication.

Categories : Google Maps

How to show my office location using Google Maps JavaScript API v3
Sounds like you want to add a marker Code below is for your initialize function based on the docs but w/ your Lat,Lon and zoom level. var myLatlng = new google.maps.LatLng(9.965156,76.290034); var mapOptions = { zoom: 8, center: myLatlng } var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); // To add the marker to the map, use the 'map' property var marker = ne

Categories : Google Maps

map does not expand to full size on load when using jquery mobile
Your #map-canvas is wrapped with div's. They must all allow to expand the height to 100%. Correct your JSFiddle with this ... html, body, #map-page, #map-canvas { height: 100%; margin: 0px; padding: 0px }

Categories : Google Maps


Recently Add
How to get the MID of a location in google maps?
use cases of googleMaps distanceMatrix api?
USGS Kml Layer is not displaying colors or sizes properly
Embed Google "my map" on Google Site but No Maps Found
Google maps gradient polylines: need for a hack?
Google places api not returning postal code for some places
How do I make Google Maps controls responsive?
google maps web finds an address/place, but neither places API nor geocoding API finds it
Google map in responsive map doesn't center map
Localizing Google Maps when the API file isn't called
Google Maps API - Showing only the traffic layer?
Adding text to google maps polyline icon
add an address search to a custom google map
OTP encoded polyline same as Google encoded polyline?
getting image url from google contact api
How to show my office location using Google Maps JavaScript API v3
map does not expand to full size on load when using jquery mobile
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.