Zoom doesn't work on map with KML layer - google-maps-api-3

I have a map with KML layers on it with 3 countries - http://learn.javascript.ru/play/XfYicc
Everything works perfect except zooming - any value I enter - nothing change, e.g.:
zoom: 11,
If I remove KML all works perfect.
Any chance for me to reduce current zoom with KML layer on?

Related

Google Maps v3 marker over infowindow

I need to display marker over opened infowindow.
Here is an example of what I'd like to do
If I understand correctly, the property zindex for marker and infowindow not act for each other.
You are correct, the z-index property works only along with the same type of objects (relative z-index). Marker z-indexes compared with other Markers, Polygons with other Polygons, and InfoWindows with other InfoWindows. Each of these types have their own layer z-index related to each other that cannot be overridden. Maps API #InfoWindowOptions and Maps API #PolylineOptions; check z-index description. It's written throughout the API documentation.
I don't remember the exact order of the main layers, but it can be tested easily. For sure though InfoWindows appear above Markers.
:) 1> marker you can use image to set image of default marker google.
2 : InfoWindowOptions can display HTML inner.

KineticJS canvas on top of Google Map. Shapes fall apart on drag and zoom

I'm trying to display property boundaries on top of a Google Map by using KineticJS and a Google Maps OverviewLayer.
It works great (1000 parcels being shown at a time. Much faster than Google.Maps.Polygon())
When I drag the Google Map down, then zoom in/out, the top shapes get cut off and don't re-draw when I zoom back out.
I'm guessing its a setX, setY thing but I don't understand the underlying concepts enough.
Any help would be appreciated.
Here is my app:
KineticJS and Google Maps OverlayView test site
I added a light-green background to the KineticJS canvas to see what it happening when you zoom in.
The canvas seems to stay locked in place and the same width/height but when you zoom in I'm guessing the canvas should grow proportionally.
I can't figure out how to do that though....
Any help would be appreciated!

Get position of streetview pegman before he is dropped

I'm usually pretty handy with the google maps API, but I'm stumped on this problem. Does anybody know of a way to get the exact latlng of the pegman before you have dropped him (the red circle in the picture below).
I want to know because I want to change the heading of the panorama that will open to be at the point where the pegman was dropped so the view will be "looking at" the area the pegman was dropped.

Annoying white flashes happen when zooming in Google Map Api

I'm currently developing a webpage containing a map based on Google Map Api V3 : http://www.fairaidsyria.org
I have two overlays containing polygons that appear successively as the user zooms in..
Unfortunately, annoying "white flashes" occur when zooming. The problem even occurs at max zoom levels, when both overlays are not displayed...
The blinking seems to be directly related to the presence of polygons in the zoomed area, because if you try to zoom somewhere else in the world (area without polygons), everything works fine : no flashes.
I suspect this phenomena to be "native" and not related to a mistake I could have done. In fact, the same flashes also happen when you zoom in the triangle in the following official example : https://developers.google.com/maps/documentation/javascript/examples/polygon-simple?hl=en
Did someone find a way to solve this?
based on this good article change your meta viewport tag to:
<meta name="viewport" content="initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">

Stars and placemarks disappear when zooming in on lat: 10, lng: 9

I'm using the Google Earth Plugin with the sky map data and I've found a part of the sky that seems to have a glitch. The attached jsfiddle shows the placemark I create and nearby celestial objects as it's flying in, but past a certain point, they all disappear. If you zoom out enough, it comes back, but I can't get zoom in enough.
If I change the star coordinates to something else (e.g. {lat: -4.14463888888889, lng: -74.877625}), it works just fine. Try it out:
http://jsfiddle.net/D9Ade/6/
I updated my Google Earth plugin from 7.0.3.8542 to 7.1.1.1580 and it started working!

Resources