You are not logged in.
- Topics: Active | Unanswered
Announcement
*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Pages: 1
#1 2011-03-23 17:31:09
- markusH
- Member
- Registered: 2011-02-08
- Posts: 14
Route is not shown
Hi all,
When I get an xml via http like this way:
var kmlLayer = new OpenLayers.Layer.Vector("KML", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "http://localhost:8084/TestWebApp/XMLResponseServlet",
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true,
maxDepth: 2
})
})
})
OpenLayers is not able to show the result. The result is valid because when I copy the result from the http call in a local file its shown( the result is a route). What am I doing wrong?
Best regards,
Markus
Offline
Pages: 1