GInfoWindowTab function equivalent in Google Map API v3 - google-maps-api-3

Is there any function in Google Map API Version to show the multiple tab info windows like the following example?
Example
This example is done by using Google Map API Version 2. I am wondering the equivalent function in Google Map API v3. I can only find the google.maps.InfoWindow which is the popup window without Tab. Thanks.

in this
GInfoWindowTab equivalent in Google Maps API v3
we have this:
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/examples/example.html

V3 does not have tabbed infowindows, yet.

Related

Get Source and Medium from ga.js

I have a newsletter page on my website which I'd like to also use to capture some additional information about the user using Google Analytics.
Using the getAll() method from ga.js I can get the referrer URL (if any), however I cannot see the medium or source data. Is this possible to retrieve using their ga.js library?
Retrieve specific tracker from the list of trackers you obtained.
Use the following to access the fields source and medium.
tracker.get('campaignSource') and tracker.get('campaignMedium')
Additional help from below links.
Access data from ga object:
https://developers.google.com/analytics/devguides/collection/analyticsjs/accessing-trackers
Field reference:
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference
This is not possible with ga.js.
However, you can use custom JavaScript to deduce the same information.
If you only want this capability, then I suggest you have a look at the library I wrote: https://github.com/ilkkapeltola/visitdata
Once the library is included, you can run visitData.get(), which returns an object with exactly the data you need.
If you are using google analytics core reporting api try this
'metrics': 'ga:sessions ,ga:pageviews',
'dimensions' : 'ga:source,ga:medium'

Openlayers v2 using Bing satellite (TypeError)

since this morning, there is a major bug regarding to the combination of Openlayers (version 2) and the base layers of Bing (satellite confirmed). During a refresh, the satellite map of Bing does not show up and throws the following error:
TypeError: this.metadata.resourceSets[0] is undefined
A general as well as brief fix, which helped me out was to update the API key of Bing. Unfortunately, my old api key of Openlayers v2 didn't work anymore and I came up with the idea to use the key of Openlayers v3.
Now my code look like this:
var apiKey = "Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3";
var satellit = new OpenLayers.Layer.Bing({
name: 'Bing Satellit',
key: apiKey,
type: 'Aerial'
});
map.addLayer(satellit);
This is just a hot fix. Does anyone has a better solution for this?
Thank you.

Can my code get the Google map API version number?

I am not using the v parm when I load the Google map API. Therefore I always get the "release" version of the API.
My app has an "About" feature and I would like to display the API version number.
Is there a way for me to get that value or would this be an enhancement request?
simply use: google.maps.version
http://jsfiddle.net/doktormolle/anN4U/
There was a way to get it from the filename of the script that loaded:
//*************************************************************
// API version from post on Google Maps API group by bratliff
var file,loop;
var tags=document.getElementsByTagName("SCRIPT");
// alert("tags="+tags.length);
for (loop=0;tags[loop];loop++)
{
if (file=tags[loop].src.match(/http:\/\/[^\&\?]+\.google\.[^\&\?]+\/([0-9]+)\/[^\&\?]+\/main\.js/)) {
//alert(file[1]);
document.getElementById("apiv").innerHTML = "API v2."+file[1];
}
}
//*************************************************************
You should be able to do the something similar for API v3.

Google Earth Integration/ Maps V3 Flyto Onclick

Using the new "hackish" integration for Google Earth ( http://code.google.com/p/google-maps-utility-library-v3/ ) I have gotten this example working and worked plenty with the Google Earth plugin and V2 of Maps. I was curious as to how to access the flyto and lookat functions onclick.
Previously you could call a function like this within an anchor link and it will flyto when clicked
function viewSouth() {
var lookAt = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);
// Set the position values
lookAt.setLatitude(28.54626988796781);
lookAt.setLongitude(-81.37704984953177);
lookAt.setRange(1070.448301908147); //default is 0.0
lookAt.setTilt(67.84202025905072);
lookAt.setHeading(-179.9640072336487);
ge.getView().setAbstractView(lookAt);
}
This it seems doesnt work with the new integration method. Could I possibly get some quick instruction as to how to access this function withing the Maps V3/Google Earth Integration
Thanks in advance!
I was able to use the googleEarth variable which was set to equal GoogleEarth(map) and then it worked! thanks

google map api v3 Weather information

How do we add the weather overlay option to a Google map, just like on Google my maps?
I've searched for it, but i can't find the answer.
Do i have to call a weather web service?
You can display the WeatherLayerdev-guide on your map by taking two steps:
First, load the WeatherLayer library by adding the libraries parameter to the URL you use to load the map:
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?libraries=weather&sensor=false">
</script>
Then, you must create an instance of the google.maps.weather.WeatherLayerapi-doc class, passing any options in a WeatherLayerOptionsapi-doc object, and attach the WeatherLayer to the map:
var weatherLayer = new google.maps.weather.WeatherLayer({
temperatureUnits: google.maps.weather.TemperatureUnit.FAHRENHEIT
});
weatherLayer.setMap(map);
In addition to the WeatherLayer, there is also a separate google.maps.weather.CloudLayerapi-doc class that you may create in a similar way:
var cloudLayer = new google.maps.weather.CloudLayer();
cloudLayer.setMap(map);
There is no separate library that you must load to use the CloudLayer; adding the libraries=weather parameter to the URL that loads the map makes both the WeatherLayer and the CloudLayer available on your map. There as a Google Maps JavaScript API v3 Example: Weather Layer, that shows the usage of both layers.
I have got same trouble when I tried to use Google map apiv3 with weather layer. But luckily, I found this site http://code.google.com/p/gmaps-samples-v3/ that provides all Google map api v3 samples and they are worked. Hope this help.
Cuong Vo

Resources