[OpenLayers-Users] Configure ProxyHost and KML files
Alexandre Dube
adube at mapgears.com
Wed Mar 25 13:37:55 EDT 2009
Hi,
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost
Regards,
Alexandre
Asle Benoni wrote:
> Hello,
> I am new to OpenLayers. I have made a Feature Set in GeoServer and
> when I click on Demo and show my map it downloads a KMZ file. I am not
> sure if this is correct but I can view it in Google Earth just fine.
>
> I am trying to serve a KML file from GeoServer but in FireBug I see:
> *Access to restricted URI denied" code: "1012*
>
> How do I configure OpenLayers prox.cgi to make things work?
>
> This is the OpenLayers code:
>
> map.addLayer(new OpenLayers.Layer.GML("KML",
> "http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne",
> {
> format: OpenLayers.Format.KML,
> formatOptions: {
> extractStyles: true,
> extractAttributes: true
> }
> }));
>
> Thanks for any advice!
>
> /asle
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list