You are not logged in.

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.***

#1 2011-03-23 14:10:49

markusH
Member
Registered: 2011-02-08
Posts: 14

Java + Openlayers + KML

Hey all,

I want to show the result of my routing on openLayers. The routing is implemented in JAVA and it is an web application running on a server.
I saw some examples with php where the structure of a kml is created and returned to OL with echo $result;
Are there some examples for returning dynamic kl from a java app instead of php?

My first idea is to implement a servlet which constrcuts the kml structure and return the result with out.print(resultString), but Iam not sure if it would work.

Best regards

Markus

Offline

#2 2011-04-09 09:45:44

mmr
Member
Registered: 2010-07-30
Posts: 73
Website

Re: Java + Openlayers + KML

hi,

your idea is ok. Your JAVA servlet will work the same way as the PHP implementations.

Regards

Michael

Offline

Board footer

Powered by FluxBB