GoogleBot Indexing dynamic site content in Google Maps overlay - google-maps-api-3

Dynamic content displayed in Google Maps overlays is not being indexed, apparently because it takes too long. Profiling shows that the vast majority of that time is spent by Google Maps.
Would it be reasonable for the client-side JavaScript to check if the user-agent is GoogleBot, and then ask Google Maps to not load any imagery?
(That would be simpler on our end than not calling Google Maps since the db content to be indexed is in a map overlay, and the site is using the Google Maps API for lat/lng information.)
Is there a way to ask Google Maps API v3 to not load any imagery?
An example of the dynamic content we'd like indexed in the overly here: http://acromaps.com/#37.836161,-122.28133,15z?id=183
(GoogleBot is now executing JavaScript to index some dynamic sites: http://googlewebmastercentral.blogspot.com/2014/05/understanding-web-pages-better.html )
I've tried checking (navigator.userAgent.search(/googlebot/i) != -1) and using [{featureType: "all", stylers:[{visibility: "off"}]}] which helps some.

Related

Adding the localizing pin in Google Maps

I understood that, in order to visualize an attraction or a commercial venue in Google Maps you use Maps JavaScript API. However this would be for maps that would be displayed on websites or mobile devices only?
How would it be possible to map and localize a feature in Google Maps, as these are accessed from Google website? I mean, is it possible to map and visualize something that would be accessible and visible to anyone opening Google Maps? A special request should be made to Google?
Thanks a lot

what3words APIv2 UI wrapper with Google Maps

Our website is trying to integrate with both Google Maps and What3words. I need to build an UI display a map with.
A marker on the map, and a search box.
When dragging marker, can retrieve the corresponding 3 words based on its geo coordinate.
When typing into the searchbox, can retrieve the three word based on auto complete result from Google.
Actually it should look like below picture.
What I have archived so far is getting the source code from What3words-map-marker that support What3words API v1 already. But now all the API from What3words has migrated to API v2.
May I check If there are any release from What3words that support wrapper it with Google Maps and API v2?
I'm not sure I follow your question exactly but my company also has just recently implemented something might be the same with your requirement.
Please check this Github page for more detail. Image as below.

Panoramio - Will I be able to use 'get_panoramas.php' after November 4th 2016?

I saw the deprecation message and the blog post by Google and I'm completely stumped on what will continue to work and what not.
I don't upload images to my account. I understand that this service will no longer be available.
What I do use, is this api: http://www.panoramio.com/map/get_panoramas.php, for showing images near locations on my website.
Will I be able to keep using it?
If so, until when? And shouldn't that be clearly stated?
If not, is there a parallel Google Maps api to get such images? I'm aware of Google Locations api, but I'm more interested in nearby outdoors images, and not places of business and named land marks.
Thank you.
UPDATE: as stated in the comment, the service is indeed down. The image urls we already have are still operational for another year, but we can't search for other existing images anymore. So we made the transition to Flickr. It was very easy and it works great.
It is stated in the link that you provide that after November 4, 2016, you’ll continue to have access to your photos in Panoramio for a year, but take note that you will no longer be able to add new photos, likes, or comments.
I suggest you to check this Google Static Maps API, it lets you embed a Google Maps image on your web page without requiring JavaScript or any dynamic page loading. The Google Static Maps API service creates your map based on URL parameters sent through a standard HTTP request and returns the map as an image you can display on your web page.

Dynamically addressing kml in Google Earth API for Google Maps v3

I'm using Google Earth API for Google Maps v3 to display kml files in a window which can then be switched between Maps and Earth browsers. This is a different plugin to that officially provided by Google, and I've run into a problem dynamically switching kml in the Earth window. I use checkboxes to switch them in the Maps API V3, window, but when the browser is switched to Earth it no longer listens to the checkbox actions. Essentially what I'm trying to do is a replication of the interactive checkbox example on the google code playground, but I think I should be using the Maps V3 scripts?
I've included a link to the example script here:
http://commondatastorage.googleapis.com/webgistank/TRMM_Checkbox_Example.html
Any help is greatly appreciated!
Regards,
Kerry
You have errors in your code. For example, the line
google.maps.event.addListenerOnce(map, 'tilesloaded', addOverlays);
references the non-existent function addOverlays
Also, I'm not sure what you mean...
"This is a different plugin to that officially provided by Google"
...as it is the exact same plugin.
You also state that...
"...it no longer listens to the checkbox actions."
It is the browser listens for the actions, not the Earth plug-in. The checkboxs event are still firing, the reason the code doesn't work is that the "Google Earth Api" (the api for controlling the plugin) uses totally different objects and methods to the Google Maps Api (the api for controlling the map). Things like google.maps.KmlLayer just don't exist in the Earth Api at all. So when the checkbox event fires it causes and error because you are calling methods on objects that don't exist.
From looking at your code, after initialising the Earth plugin via
googleEarth = new GoogleEarth(map);
You don't do anything else with it...You mention in your question the interactive checkbox example on the Google code playground, but as far as I can see you haven't actually implemented any of the code from that example.
Take another look at the function loadKml method in that example - it clearly shows how to load and display data in the Earth plugin.

rendering complicated images from google maps

Is there any way to capture the image from a complicated Google Maps with some customize overlays like heat gradient. See figures:
Google static map API can only generate static maps(images) with simple polylines or markers, in my situation this is apparently not enough, I want user to capture this kind of images and share it in there twitter fb of g+
see Google Maps image?, it is a similar question. But not so useful in my situation
It's not allowed. See here:
https://developers.google.com/maps/faq#tos_screenshots
Use of Google Maps imagery in printed materials and offline media is
subject to the Permission Guidelines published at:
http://www.google.com/permissions/geoguidelines.html
you can request permission, but I don't think it's easy to obtain, unless you are a paying business customer.

Resources