Google Maps API: Standart (new) balloon style - css

How to make standart balloons like new restiled google maps ballons?
See pictures:
New styled balloons:
old styled balloons (i have):
Where i can get css?

Google Maps often put new functionality in their own maps before making them public in their API.
I believe this is a custom info window and there are images involved.
So you can't just put some CSS to style the old balloon into the one you're seeing on Google Maps.
What you have to do is if you want the new styled balloon, you have to create one yourself with the Maps API.
This is called a Custom Info Window
This is pretty intensive if you never did some Maps API development.
If the "new style" balloon becomes popular, they will push the update through a new version of the API so it can be available to everyone. They did this with the zoom control, etc.
I'm a certified Maps API developer so I'm pretty sure of my answer!
Thank you

Related

How to activate this context window in Google Maps API

Started to work with Google Maps JavaScript API v3, but in all my maps this info window is missing. Researching "Infowindow" just offers information about tag windows that open if you click on the map badge I can set.
Anybody knows how to activate this "context window" which is activated in the Google Maps iframe example? See the picture below…
The Answer to your questions is NO, there is no way to activate a context window in the API other than the info windows.
May I suggest to use a div element and with simple CSS you can position your div in front of your map or anywhere you want, and with the Google Maps API you fill this div with any info you want.
I did not find any info about that context window in the docs neither, but inspecting Google Maps I see that all of that is pure HTML.
Happy coding :)

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.

Image Overlay using the Street View Image API

I am wondering if i am allowed to add an image overlay to a static Google Street View image.
The idea behind this question is adding a person/object to the street view image in an android application (and displaying it) without further processing of the outcome.
Would this violate "10.1.3 a)" of the Google Maps/Google Earth APIs Terms of Service?
I am not really sure about that, because "(i) creating server-side modification of map tiles" is listed as a forbidden example, but I only want to do add a client-based overlay without modifying the Street View Image as itself.
Thanks for your help!
Did you read this section? https://developers.google.com/maps/documentation/javascript/streetview#StreetViewOverlays
It seems that the Street View API supports overlays.
If you read the link from Vitor, it says that:
"Currently, the types of overlays which are supported on Street View
panoramas are limited to Markers, InfoWindows and custom OverlayViews.
"
So unless you implement your own custom overlayview, image overlays (like a ground overlay) aren't supported

Google maps api marker info in sidebar

I'm currently creating an interactive web map using Google Maps Javascript API version 3. I'm not sure if this is possible but I would like to create a series of map layers consisting of different kml files that could be toggled from the side bar. I would also like to be able to access the individual points within the kmls so that when the user clicks on a particular point, photos, text etc. can be loaded outside the map window...
Any ideas on how to accomplish this? I've been searching for a while and only found ways of configuring the infowindow which I personally find unattractive...
There is a way to load KML into a google maps application natively, there is actually a pretty good example of how this is done here:
http://gmaps-samples-v3.googlecode.com/svn/trunk/layers/layers.html
One trick I will mention is that since the KML is downloaded to Google's servers in order to be rendered on the map, it must exist on a public facing web server somewhere, Google won't be able to access it from your local machine.
I found this tutorial which seems like it'll do the trick!

adding google map in asp.net application

i am develope web application for factory i need to add google map with location of factory
in contact us web page.any help i am just beginging with web development
Easy way here does all the work for you.
Embedding a map into a website or blog
You can embed a simple map, a set of
driving directions, a local search, or
maps created by other users. Here's
how:
Ensure that the map you'd like to embed appears in the current map
display.
Click Link to this page in the top-right corner of the map.
In the box that pops up, copy the HTML under 'Paste HTML to embed in
website,' and paste it into the source
code of your website or blog.
If you'd like to adjust the size of the map before you embed it, just click
Customize and preview embedded map, select your preferred size, and take a
look at the preview map. Once you're happy with what you see, copy the HTML
that appears in the box at the bottom of the window.
Keep in mind that you won't be able to embed Traffic maps, Mapplets, and some
other Maps features.
Google Map API is just javascript. Which can be used in any web technology
follow this link you will get what you are looking for
http://code.google.com/apis/maps/documentation/javascript/
If your beginning, maybe you should try to learn web development first. Javascript, post/get mechanics, HTML/CSS validation. Tackling Google Maps integration right at the beginning of your learning process might slow down your project evolution. It's my opinion.
To learn google maps api, try to start at this address :
http://code.google.com/intl/en/apis/maps/documentation/javascript/introduction.html

Resources