[OSM-dev] POI layer refusing to talk to server php

NopMap ekkehart at gmx.de
Mon Jan 10 07:32:20 GMT 2011



Hi!

Yes, the description was a little bit vague. I had hoped that maybe this was
a known problem. Anyway, here's the details.

The JS is pretty much straight from the examples:

            var pois = new OpenLayers.Layer.Vector("POIs", {
                    strategies: [new OpenLayers.Strategy.BBOX({resFactor:
1.1})],
                    protocol: new OpenLayers.Protocol.HTTP({
                        url:
"http://www.wanderreitkarte.de/static/pois.php",
                        //url: "static/pois.txt",
                        format: new OpenLayers.Format.Text()
                    })
                });
		map.addLayer(pois);


It works when the static text is commented in, it fails with the url.

The requests sent by OL look like this:

http://www.wanderreitkarte.de/static/pois.php?bbox=1271869.8554116,6324203.8815908,1295756.4267464,6342797.188718


The script is live on the server so you can check out the output of this.
When you download the script output and use it as the text file, the example
works.

I also believe that it is some sort of header/communication problem. I
already changed the content type of the output to "text/plain", but that
didn't change anything.

Any ideas where it gets stuck?

               Nop

-- 
View this message in context: http://gis.638310.n2.nabble.com/POI-layer-refusing-to-talk-to-server-php-tp5899420p5906115.html
Sent from the Developer Discussion mailing list archive at Nabble.com.



More information about the dev mailing list