[OpenLayers-Users] Question on changing Popups on Textlayer

Christopher Schmidt crschmidt at metacarta.com
Sun Nov 16 13:08:43 EST 2008


On Sun, Nov 16, 2008 at 05:47:05PM +0100, Dirk Umlauffd wrote:
> I feel like I read this answer already 2 or three times. But it is - in my opinion - not really the answer to my question.
> I already use the Layer.Text and would like to improve the look and feel.
> 
> If the "hack" would solve the problem, could you please explain where to put the code?
> As "patch" into Text.js?

No. Copy the code, put it in your <script> tag. 

> If Layer.GML is so much better, is there a tool to merge already existent textfiles into this layer?

Yes, 
  new OpenLayers.Layer.GML("My Layer", 
                           "filename.txt", 
                           {format: OpenLayers.Format.Text });

See also: http://openlayers.org/dev/examples/sundials-spherical-mercator.html 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list