I have a problem loading the google map custom markers in kmlLayer.
The custom markers become very tiny recently.
http://apdrc.soest.hawaii.edu/gg/rainSD2.php
It was working before. Does anyone know the problem on that?
Is that the google map API server problem?
Does google map API change the setting for custom markers size?
Thanks for helping.
Google announced a change to KML rendering that was scheduled to take place in mid-July. It wouldn't surprise me if this included support of the scale tag. Are your icons not standard sized? Should they be scaled?
Looking at your KML, you are scaling your icons:
<scale>0.25</scale>
If you apply that to your icons which are 32x32, they end up being 8x8, and the dot is already a pretty small chunk of the real estate.
If you change the scale to 1.0, I think it will display as you expect (once the cache on google's servers updates).
Related
I'm looking for a way to add images to the Google Map interface itself, not fixed on a point on the geographical map but on the Google Maps "window". Something to display Map Legends on the map itself.
I've been looking through the net but can't seem to find a way to do this. As you can tell I don't really know what this is called also, so that may be the reason why I ca
You have to open infowindow on map and put image in it.
Try with this answer : google maps api v3 - how to display image thumbnails inside bubble?
*how to show multiple balloons at same time in Google earth API? Is any trick can be made like increasing place mark icon size? *
AFAIK, Google Earth both the desktop program and the browser plug-in only allow having one 'balloon' showing at any one time.
About half a year ago I created a Google Maps application (v3) which loads a number of placemarks from a KML file ( http://www.ioors.nl/projects.kml ). This used to work without any problems. Recently though, I have noticed that the markers are not visible anymore in the map. When I load the KML file in maps.google.com the placemarks are listed on the left, but the markers aren't visible there either.
After running a few tests this problem would seem the be caused by style element. Leaving it out makes the markers visible.
I have also tested this with some sample KML code from Google ( https://developers.google.com/kml/documentation/kmlreference#balloonstyle ) and the same problem seems to occur there.
Has Google Maps' support for KML changed recently (can't find anything on Google about that though) or is something else causing the problem?
Any help in this matter would be greatly appreciated.
Kind regards,
Wilco Kuyper
Something did change recently (about 1 week ago) related to Google Maps support for KML. Right near the end of last month, there were a number of developers here on Stack Overflow with questions about the number of KML layers being limited to 5. An issue was logged on the Google Maps Issues site and it was fixed very soon afterwards. You may have run into an additional issue.
Since the problem you are seeing is also present on the Google sample code, it sounds like there is an issue. I'd double-check everything, make sure you have a true issue, and then visit the link above to submit a new issue.
Make sure your scale element is correct. The Google Maps API KML parser is now honouring it (as well as hotSpot).
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!
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