On Thu, Jun 3, 2010 at 1:27 AM, nianwei <nia...@gmail.com> wrote:
> Ben,
> What does KmlLayer (via image tile layer) mean for Enterprise
> customers, if the KML server is not visible to Internet outside
> firewall?
Right - if Google cannot access your KML server, we cannot render your
KML as image tiles.
One possibility is to serve your KML from a publicly-accessible web
server but use securely signed URLs. Your webserver would serve the
signed KML URLs to your internal web pages (which are only accessible
inside your VPN) so that your web pages can display the KML. It would
only serve the KML content when Google requested it, if the URL
signature was valid. For increased security you can include the
current time in hours in your KML URL, so your webserver can reject
old URLs.
> Also, the actual data must be pulled from the data source to
> one of the Google rendering server, so the size of the data can be a
> concern, (if more than just a few megabytes), right?
Files can be up to 3MB zipped, 10MB unzipped:
http://code.google.com/apis/kml/documentation/mapsSupport.html
> And is there a way to control the refresh/cache/timeout of the tile
> layer on Google image server? I vaguely recall in V2 it was like 2 hrs
> or so, it would be nice to able to control that for time sensitive
> data.
I'll have to check: I think we honor the HTTP Cache-Control header
that you put on your KML, but we may impose a minimum cache lifetime
to avoid making too many requests to your server. But if you have
time-sensitive data, you could include the time in your KML URL.
Cheers
Ben
Wow... yeah we weren't familiar with the KMLLayer I haven't dug into
this really at all other than the V2 polygon rendering. I'll
definitely report back on our experiences.
As for tracking marker performance, I know we would just love to see
some specialized events on each layer for onAdd, onRemove, etc. that
we could use to track total loading speed.
Thanks for getting back to me so promptly :)
~ Anders