w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » GOOGLE MAPS » Page 1
Changing Google Maps Infowindow background colour
Hi Barry, For customized the background you have to refer to InfoBox of Google maps utility library :http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/ Oterwhise, here is a nice tutorial for your asking :http://www.artandlogic.com/blog/2014/02/custom-google-maps-info-windows/ Hope that'll help you

Categories : Google Maps

Show/hide marker AND use info window google maps API v3
otherMarker is just an array, not a google.maps element. As such, it doesn't have listeners per se. In second place, as any js element, you can add a few properties of your own to the google.maps.Marker, so you can read them later when opening the infoWindow. To get each one of your markers to display an infoWindow when clicked, you should do for (var i = 0; i < other.length; i++) { var

Categories : Google Maps

How do you make geojson data for a custom google map
The simplest way is to use the Data layer Look at the example in google maps api. Basically, you use the loadGeoJson method and pass it a valid geojson file's url map.data.loadGeoJson('https://storage.googleapis.com/maps-devrel/google.json'); This means that, whatever shapes you have already drawn in another source will have to be converted to geoJson format. There are a lot of converters th

Categories : Google Maps

Is there a verbose errors setting on Google Maps API?
Specifically for KML layers, set a listener for the status_changed event and display the layer's status: var newKml = new google.maps.KmlLayer({ url: VALID_KML_URL_HERE }); newKml.setMap(map); google.maps.event.addListenerOnce(newKml, 'status_changed', function () { console.log('KML status is', newKml.getStatus()); });

Categories : Google Maps

Javascript error on google maps main.js
Okay, so it turns out the map element I'm passing to google.maps.Map() didn't exist. So the bug is "it doesn't say so, but it gives an obscure error". Anyway, hopefully someone can use this solution.

Categories : Google Maps

Google Crawl Errors Because Of External Links
You dont want to use robots.txt for blocking the url(Google does not recommending). 404s are a perfectly normal (and in many ways desirable) part of the web. You will likely never be able to control every link to your site, or resolve every 404 error listed in Webmaster Tools. Instead, check the top-ranking issues, fix those if possible, and then move on. https://support.google.com/webmasters/a

Categories : Google Maps

How to update Latitude and Longitude in gmap in primefaces
For what concerns you current problem, you need to instantiate the builder in your constructor public MapBean() { geo = "33.572571, 73.055555"; builder = new StringBuilder(); ... }

Categories : Google Maps

show directions on google maps website
https://developers.google.com/maps/documentation/directions/#Limits The Directions API may only be used in conjunction with displaying results on a Google map; using Directions data without displaying a map for which directions data was requested is prohibited. Additionally, calculation of directions generates copyrights and warnings which must be displayed to the user in some fashion. For com

Categories : Google Maps

google directions api returns no results
https://maps.googleapis.com/maps/api/directions/json?origin=43.4833815,-80.539168&destination=43.47242353,-80.54613339&sensor=false&arrival_time=1417650300&mode=transit Your timestamp needs to be a UNIX Timestamp in seconds. You provided a UNIX timestamp in milliseconds.

Categories : Google Maps

Google maps stops kml/kmz support in February 2015
There are multiple options. For maps based on OpenStreetMap: umap allows you to create a map and import KML files. Leaflet and OpenLayers allow you to host your own map. It is possible to display GPX files. For converting KML to GPX see GPSBabel.

Categories : Google Maps

Program-generated KML file validates, but doesn't work
You can check if the DNS is setup by: Going to the url in your browser. Do this with cache emptied and history ereased (private mode is best). If it ends up at your server and the right file it is not a DNS problem. Move the file to a location you're sure it is reachable without any DNS issues. e.g. http://www.mankato-mn.gov/Maps/StreetConstruction/engineeringprojectskml If the problem persis

Categories : Google Maps

marker icon on get directions google map
G.I.Y.F This page explains how to add your own logo to a Google Map. See also: How to add logo to copyrights in google maps? http://www.developerdrive.com/2013/08/adding-a-custom-icon-to-a-google-maps-marker/ etc

Categories : Google Maps

Google maps custom overlay with wrong width
As it seems this happens when the bounds intersect the prime-meridian. Try this to calculate the width: ((ne.x - sw.x) + (((ne.x - sw.x)<0 || this.bounds_.getNorthEast().lng() - this.bounds_.getSouthWest().lng()>=360) ? overlayProjection.getWorldWidth() : 0)) Demo: http://jsfiddle.net/doktormol

Categories : Google Maps

Launch Safari browser with StreetView for a given latitude longitude
The way I solved this was to first call the following API to get a panoId and best_view_direction_deg. Here's an example url for that API: http://maps.google.com/cbk?output=json&ll=40.766200,-73.982500 Here's a piece of ObjC code I used to convert the pano ID and direction into a url: + (NSString *)bestStreetViewWebUrlForCoordinate:(CLLocationCoordinate2D)coordinate panoId:(NSString *)pano

Categories : Google Maps

403 Forbidden Error While accessing Google MapsAPI
you need to go your map, and add your SERVICE_ACCOUNT_EMAIL address and give it can edit or view premission follow this: https://support.google.com/mapsengine/answer/4618526?hl=en

Categories : Google Maps

How can I make my Gmap geocoding request yields the same results as my direct search on Gmaps?
It does not seem to like the company name "GT GROUP" or the postal_code=113 component, this url gives results: http://maps.googleapis.com/maps/api/geocode/json?region=GE&address=48b%20Kakutsa%20Cholokashvili%20St,%20Tbilisi,%200113,%20GE&components=locality:Tbilisi|country:GE&sensor=false

Categories : Google Maps

.txt file gps data not readable in google earth
NMEA format is supported in Google Earth client at least in the Desktop version. Go to File > Open, choose your data file, and press “Open.” If you want to drag/drop file onto Google Earth try renaming it to have a .log extension. You can find details for importing data from GPS devices in this related Google Earth help article: https://support.google.com/earth/answer/148095?hl=en The $GPG

Categories : Google Maps

Re-order controls on Google Map
According to the ControlPosition docs Controls that are added first are positioned closer to the edge of the map. And for the RIGHT-BOTTOM position Elements are positioned on the right, above bottom-right elements, and flow upwards.. However that seems to contradict what seems to be happening with yours. As you're just applying all the controls as part of the MapOptions specification, I wonde

Categories : Google Maps

how to tell if a certain coordinate is in a street, using OSM?
Usuallay you would use a so called reverse-geocoder that uses optimized spatial datastructures to answer this question (e.g. for OSM nominatim). Or you do it on your own and create a shape based on the roadnetwork and a GIS "buffer" operation that can be used to check if a given lat/lon is within a certain road shape.

Categories : Google Maps

Google place api search result with place_id returns different location with place_id
1) Never post your API key on a public forum. Go get yourself a new one. 2) reference has been deprecated, so you don't need to include it 3) EiJG... doesn't look like a Placeid. My guess is that you are trying to look up a value that doesn't exist and you're getting strange behavior. Run a Place Search and get the Placeid and try again. You haven't posted what you searched for initially so it

Categories : Google Maps

Tracking marker clicks on Google Maps - Using google tag manager
I would expect so, see https://developers.google.com/tag-manager/devguide#events You want to trigger this dataLayer.push event on click of the markers, e.g. google.maps.event.addListener(marker, 'click', function() { dataLayer.push({'event': 'markerClick'}); }

Categories : Google Maps

Appengine Fusion tables programmatically creating many map markers
Depending upon the size of your data set and how many insertions and deletions you need to make each day, you might want to consider using the Fusion Tables API. You can do a "replaceRows" operation to swap out the entire table contents, or individual "insert" and "delete" calls. (Of course then your data is stored in Fusion Tables.) You can then embed your map in the website of your choice, or e

Categories : Google Maps

Overlapping Marker Spiderfier Marker Icon When There are Multiple Markers at Same Location
Some methods seems to be interesting like markersNearAnyOtherMarker but I cannot get it work. An interesting way could be to use spiderfy and unspiderfy events and change marker when it's fired overlappingMarkers = new OverlappingMarkerSpiderfier(map, overlapOptions); overlappingMarkers.addListener('spiderfy', function (markers) { markers.forEach(function (marker) { marker.setLabel('*

Categories : Google Maps

Google Map not displayed . Error InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama
remove this line: marker.setMap(map); map is not a google.maps.Map (it's the div ) You don't need this line at all, because the map-property of marker already has been set. What you need are the variables(lat,lox,lat1,lon1,lat2,lon2), without them you will not get the map and the markers

Categories : Google Maps

Wrong positioning of Google Maps infoWindow
As it seems the issue is related to the MarkerClusterer. When the marker where the click has been triggered is inside a cluster the map-property of the marker is null and you get the wrong position. Possible solution: When the marker is within a cluster use a hidden marker(hidden via visible) as anchor for the infoWindow: google.maps.event.addListener(marker, 'click', function() { //create

Categories : Google Maps

Google Maps API - double click spot on map to move marker there
(Edit: look at Vinks' post. He points out Google maps has a disableDoubleClickZoom option.) Sure <!DOCTYPE html> <html> <head> <title>Double click on the map</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> html, body, #map-canvas { height: 500px; ma

Categories : Google Maps

Trouble displaying Google map in jquery mobile
The code you have provided should work with no issues, however, you have to change height of map_canvas and set a static value. The 100% won't occupy the entire height, because parent div content height is also undefined. The content div expands based on content within it. #map_canvas { height: 200px; width: 100%; } Another note, you should use pagecreate instead of the deprecated event pag

Categories : Google Maps

What are the differences between using routes (direction service) and using polyline with Google Maps API?
Not exactly. Polyline means you give a list (array) of points; the polyline follows those points (with a straight line from one point to the next). If you only give the start and end point, then yes, it will be a straight line (still following the curve of the earth). You can request a route, read the waypoints of the route and make (draw) a polyline that follows the exact route. The only reaso

Categories : Google Maps

Google Geocoder returns incomplete zipcode
I am not too familiar with Brasilian postal codes, but if I understand correctly your 8 digit postal code would be analogous to our +4 zip codes here in the United States. Most mail here in the US is only addressed with a 5 digit zip code, for example 95014, even though the full zip code might by 95014-7845. The USPS will still deliver this mail, and the +4 codes are not used very often. It looks

Categories : Google Maps

fill google maps autocomplete with prediction results
Here's my demo solution. As mentioned in the comment. it uses several calls to get predictions and build up the result list with them. When a result is selected the address is geocoded. This means 3 calls instead of 1 with the autocomplete, but so far I haven't found a way around it. <!DOCTYPE html> <html> <head> <title>Retrieving Autocomplete Predictions</t

Categories : Google Maps

Get current position in Google Maps JavaScript API v3 and get the dot to follow me without user interaction
This is exactly what you need 1 The working example is here: 2 Good Luck :)

Categories : Google Maps

How to export/extract google satelite map to the images automatically?
Yes, that is fairly easily done with plain PhantomJS. You can also use ZombieJS or CasperJS for this. They make it easier to handle many steps without running into callback hell or static code. I added the neccessary functions for clicking and typing. Setting the user agent string is necessary, because otherwise Google will deliver code which might not be runnable on the (old) PhantomJS 1.x engin

Categories : Google Maps

Jmeter script not recording Google map
The Google API (aka GWT) makes heavy use of client-side Javascript. IMHO, the data exchanged on http protocol are very hard to be emulated inside a custom client. I resolved to use selenium-webdriver so that the browser makes all the work. HTH

Categories : Google Maps

google maps API3 opening infowindow in clustered markers from external link
Problem solved 1-) place var markers [] out of initialize 2-) create event trigger function and trigger marker click event 3-) set position to marker position map.setCenter(marker.getPosition()); 4-)limit cluster to 9 zoom maxZoom: 9 infowindow called from a external link and placed in where it is supposed to be :) and i made it with 3 coffees + 1 coke + 1 snickers chocolate bar.

Categories : Google Maps

android maps always returning same position
There's many reasons to that. Maybe because you're connected to a wi-fi network and your GPS is off, so your phone only get location from your IP address, location from IP address is usually always the same. Furthermore, you're using criteria and locationManager.getBestProvider();, that will return the same provider based on your criteria. Ignoring other locations provided by other provider which

Categories : Google Maps

Struggling to implement Google Maps Clustering
You can try a cluster in php. Basically create a grid and sort the points into the grid cells:http://www.appelsiini.net/2008/introduction-to-marker-clustering-with-google-maps.

Categories : Google Maps

Google maps symbol with embeded text
So you want to add place names? You can create custom icons or labels, are you using the API or My Maps? This may help if you're using My Maps: https://support.google.com/mymaps/answer/3024931?hl=en otherwise if you're using the API then try this: var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/'; var icons = { parking: { icon: iconBase + 'parking_lot_maps.png' }, library

Categories : Google Maps

How to use google maps simple api on localhost
The problem was that they have their "quick start" out of date. https://developers.google.com/maps/documentation/embed/start It says you should only provide them with your API key but the thing is that there is a new version of the same website which they don't have links to from their guide but which you get a link to elsewhere( I got offered when in "billing" ) The new service is called Cloud

Categories : Google Maps

How do I provide API key when initializing Google Street View in JavaScript?
It is not required but you should according to Google: All Maps API applications* should load the Maps API using an API key. Using an API key enables you to monitor your application's Maps API usage, and ensures that Google can contact you about your application if necessary. If your application's Maps API usage exceeds the Usage Limits, you must load the Maps API using an API key in order to

Categories : Google Maps




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.