Thanks guys
So it looks like nobody ever uses GeoServer to load large vector layers on
Google Maps. Ok, good to know!
(Daniel, it does work with Google Earth)
Best regards,
Milton
2016-07-06 13:08 GMT-03:00 Daniel Araujo Miranda <[email protected]>:
> Hi Milton,
>
> That kind of url returns a perfectly valid kml for me that opens in Google
> Earth.
>
> A wrong setting in the "Proxy Base URL" field will show as an invalid
> address in the <NetworkLink>...<Url><href> field inside your kml. Check if
> that WMS address inside the KML is valid.
>
> If it is not, fix "Settings"->"Global" option "Proxy Base URL". Make sure
> it is set to a valid address. I have set mine to something like this:
>
> https://mymachine.mydomain.gov.br/geoserver/
>
> My machine is behind a Nginx reverse proxy that handles the https part.
> That domain name is registered under our local DNS so it is resolvable. You
> have to input an IP address if your hostname is not resolvable. If I had
> put http://localhost:8080/geoserver in mine I believe I would see similar
> symptoms to what you are seeing.
>
>
> What happens if you go to Layer Preview and click on "OpenLayers" instead
> of "KML"? Does it work?
>
> Best,
> Daniel Miranda
> --
> Daniel Araújo Miranda
> Forensics Expert
> Inteligeo - Geographic Intelligence
> National Institute of Criminalistics
> Brazilian Federal Police
>
>
>
> Em 06/07/2016 11:11, Milton Jonathan escreveu:
>
>> Hello all, it's been a good while since I've come here
>>
>> I have a (hopefully) straightforward problem at hand: I want to
>> efficiently display a vector layer in Google Maps that may have a very
>> large number of polygons. To do that, I need to load the polygons gradually
>> on demand as the user navigates. Having some sort of multiresolution for
>> the layer would be a plus, but I can also simply not show the layer if the
>> zoom level is too small.
>>
>> My first guess to solve this problem was to have GeoServer generate a KML
>> super-overlay and feed that into Google Maps.
>>
>> However, I was testing around with GeoServer generated KMLs and I
>> couldn't get even a basic KML (e.g.,
>> http://localhost:8080/geoserver/topp/wms/kml?layers=topp:states, which
>> has a NetworkLink element in it) to show up on Google Maps.
>> If I download a self-contained KML with all the data it does show up on
>> Google Maps, but obviously that's not reasonable for layers with a lot of
>> data.
>> Another interesting thing I noticed is that other KML files with
>> NetworkLinks do work in Google Maps (e.g.,
>> http://cleanwater.goshen.edu/kml/ccwp.kml), so this does not seem to be
>> something stupid I did on the Google Maps side (this KML I mentioned has a
>> <Link> tag inside the <NetworkLink>, as opposed to a <Url> tag that comes
>> in the one generated by GeoServer)
>>
>> So my questions are:
>> - Should this be working and I am indeed doing something stupid on the
>> Google Maps side?
>> - Is there any GeoServer configuration tweak I can use to get this to
>> work, or is KML simply not fit for this purpose because Google Maps doesn't
>> support loading KML features on demand?
>> - Is there another solution using GeoServer that could work well for this
>> situation, using Google Maps?
>> - Would this KML idea work well out of the box with other web clients
>> (OpenLayers, Leaflet, etc)?
>>
>> Thanks
>> Milton
>>
>> --
>>
>> Milton Jonathan
>> Grupo GIS e Meio Ambiente
>> Tecgraf/PUC-Rio
>> Tel: +55-21-3520-4222
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>>
>>
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
--
Milton Jonathan
Grupo GIS e Meio Ambiente
Tecgraf/PUC-Rio
Tel: +55-21-3520-4222
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users