[OpenLayers-Users] gain performance by 300+ features

2009-09-02 Thread Michael Handerek
Hi,

I have to display some linefeatures generated from a set of gps position
data. To do so, i have created a vector layer and a linestring feature
from it. The data also contains information about moving direction I
also have to render on the map. I tried to add point features to
the vector layer with an external graphic rotated according the moving
direction. If I render more than 300 features, the map will get
extremely slow. I have a average amount of 1000+ features to render. 

How can I render a high amount of features and gain performance?


Regards,
Michael

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Can OpenLayers APIs merge line features

2009-09-02 Thread Kevin Yang



Stephen Woodbridge wrote:
 
 Kevin Yang wrote:
 Hello everyone,
 A problem troubled me for a long time. Can OpenLayers APIs merge line 
 features ?I use this function to solve the following problem: When I
 calculate the shortest path, I get the WKTs of the LineStrings, but it is
 not arranged  in sequence.So I cannot use the marker' MoveTo method to
 implement the effct of a  little car picture going along the shortest
 path
 in sequence from start-node to end-node. Thus I want to consult you that
 Can
 OpenLayers APIs merge line  features ,and how to do it, or is there other
 ways to solve this problem properly? Thank you very much!
 best regards,
 Yang
 
 I had a similar problem and was using pgRouting. The way I solved it was 
 to have my Ajax server the gets the results from pgRouting do some 
 additional checking and flip the segments so they are all in the same 
 direction along the path. Basically, the segments are returned in the 
 order of first to last, but because you might traverse a segment in the 
 opposite direction than that which it is stored in the database you get 
 the segment in reverse order. Your segments are all stored with A as the 
 start and B as the end. Then you might get results back like:
 
 1  2  3  4  5  6
 AB,AB,BA,AB,BA,BA,etc
 
 So you have to first see if the first segment needs to be flipped:
 
 if 1A == 2A or 1A == 2B then flip first segment,
 for i=2 through N {
if (i-1)B == iB then flip segment i
 }
 
 now all the segments should be in the correct end to end order. and you 
 can just chain them all together.
 
 I'm sure you can do the same in Javascript.
 
 -Steve W.
 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
 
 

Thank you very much ,Steve W.!Best wishes for you! 

-- 
View this message in context: 
http://n2.nabble.com/Can-OpenLayers-APIs-merge-line-features-tp3564159p3565265.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How to call a function that sets attributes for features added by drawfeature-control

2009-09-02 Thread Max Stephan

Hi Alexandre,

good idea. I´m now assigning an attribute to the feature I´ve added via the
function that is triggered when a feature has been added. It contains a
hexadecimal-color (depending on the colorvalue that is chosen in
dropdown-menu). In the styleMap I define the fillColor as ${fillColor}.
This works perfectly.

Thx for your help
Max Stephan

Alexandre Dube wrote:
 
 Hi Max,
 
   I'm not sure about what could be the best approach.  My guess would be 
 to define a stylemap with your default 'default' and 'select' styles for 
 newly added features, then when your user choose a color for the 
 feature, add a rule based on the feature id.
 
   Have you checked : http://trac.openlayers.org/wiki/Styles ?  It could 
 helps to learn more about this.
 
   Also, an example with unique rules : 
 http://openlayers.org/dev/examples/styles-unique.html
 
 Regards,
 
 Alexandre
 
 Max Stephan wrote:
 Hi Alexandre,

 I got it working now. The Problem was that in the function that was
 triggered by the featureadded-event I tried something like feature.id and
 not evt.feature.id.
 I registered the event via
 drawFeatureControlName.events.register(featureadded, ' ' , function).

 But, as always, one problem solved and another one evolves. As said
 before I
 want to apply a user-customizable style to each feature added. I´ve done
 this for example via evt.feature.style = {fillcolor: #FF9933,
 pointRadius: 10, strokeColor: 'black'} and after that I´m redrawing the
 feature via vectorLayer.drawFeature(evt.feature). This works and the
 point
 is symbolized in the planned way. But when I select one of those points
 on
 the map the radius shrinks (I guess to the size of the default-style for
 point-Vectorfeatures) and the stroke is gone. Even when I unselect the
 feature it stays in this changed style. Now I tried to apply a stylemap
 with
 default- and selectStyle to the feature but that didn´t have any effect
 (the
 points stayed in their default-orange-style).

 Any idea how to solve this problem? Rulebased styling via a layerwide
 stylemap is no option cause as said above the user should be able to
 choose
 color etc. independently.

 Greets and thx for your help
 Max Stephan

 Alexandre Dube wrote:
   
 Hi Max,

   Here's an old demo that could help you for some of your needs :

   http://dev4.mapgears.com/bdga/bdgaWFS-T.html

   Simply click on a feature.  This demonstrate a way to edit feature's 
 attributes in a form.  If your data is stored in a DB, you don't need to 
 take care of the id manually.  The DB will automatically generate one.

   The example is using WFS-T to TinyOWS connected to a PostGIS DB.

 Best of luck,

 Alexandre

 Max Stephan wrote:
 
 Hi list,

 I´m actually implementing a drawfeature-control for my web-GIS.
 Everything´s
 working fine so far but now I want to add a little more functionality:
 - the user should be able to specify the appearance of the features
 he´s
 adding. This shall only have an effect on the features he´s adding
 after
 specifying the style (so a change of the general vectorlayer-Style is
 not
 useful)
 - each feature should get a unique ID whose format I´d like to specify
 and
 which is generated by a script-wide counter for example

 For both of this cases I thought of the event featureadded. But I´m
 having
 some trouble with it. Here´s what I tried:

 1. event-listener on the layer to which the features are added:

 example: vectorLayer.events.register('featureadded', vectorlayer,
 testFunction);

 2. event-listener on the handler for drawfeature-control (same as above
 but
 with vectorLayer being replaced by the drawfeature-control)

 3. event-listener in this form:

 vectorLayer.events.on(featureadded: testFunction, ...);

 The testFunction is meant to specify the attributes like style, id etc.
 on
 the feature that was added. The function is executed (tested it with an
 alert).

 The problem is that it´s not possible to select features on this layer
 (the
 other vectorlayers are still working) when using the
 featureadded-listener.
 But I need to be able to select features to modify it´s attributes
 later
 on
 or to clear them via a form.

 I also thought of using the create-callback of the point-handler but
 don´t
 know how to implement it.

 Any ideas and help is appreciated.
 Thx in advance
 Max Stephan
   
   
 -- 
 Alexandre Dubé
 Mapgears
 www.mapgears.com

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users


 

   
 
 
 -- 
 Alexandre Dubé
 Mapgears
 www.mapgears.com
 
 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/How-to-call-a-function-that-sets-attributes-for-features-added-by-drawfeature-control-tp3559596p3565336.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

Re: [OpenLayers-Users] IE7 vector rendering error

2009-09-02 Thread Jo Cook

Hi Eric,

Yeah, that line is there

Jo

Eric Lemoine-2-2 wrote:
 
 
 Hi.
 
 VML.js is most probably not included in the built file. Edit the built
 file and search for OpenLayers.Renderer.VML = OpenLayers.Class to
 check that.
 
 Cheers,
 
 
 -- 
 Eric Lemoine
 
 Camptocamp France SAS
 Savoie Technolac, BP 352
 73377 Le Bourget du Lac, Cedex
 
 Tel : 00 33 4 79 44 44 96
 Mail : eric.lemo...@camptocamp.com
 http://www.camptocamp.com
 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/IE7-vector-rendering-error-tp3561507p3565435.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Scale on the map in nautical miles

2009-09-02 Thread Andreas Hocevar
Hi Markus,

you may want to have a look at GeoExt (http://geoext.org/). If that
feels like overkill, at least take my advice: Creating web-based dialogs
without a JavaScript framework (like ExtJS, JQuery or similar) is painful.

Regards,
Andreas.

Markus wrote:
 Dear OL-Specialists,

 How can I make this (webbased):
 - window (for tools, dialogs) should be on top of the map every time
 - focus should be switchable on map or on tool-window (by cursor-click)
 - possibility to move and zoom the map /under/ the tool-windows
 - possibility to activate markers in the map, without disappearing 
 tool-windows
 - possibility to move the tool-windows on the map (it works)
 - possibility to make inputs in the tool-window (it works)

 Now, if I click to the map, the tool-window disappears behind the map...

 Thanks a lot!
 Markus

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] RegularPolygon Styling

2009-09-02 Thread Andreas Hocevar
Eric Lemoine wrote:
 On Tue, Aug 25, 2009 at 7:20 PM, Heidt, Christopher
 M.christopher.m.he...@saic.com wrote:
   
 The temporary style that exists in the other shape handlers
 doesn't seem to work with RegularPolygon.
 How do I change the style of a RegularPolygon during the draw phase?
 

 Hi.

 Either write a patch to Handler/RegularPolygon.js so it takes the
 layerOptions config option into account (as Handler/Point.js does),

Such a patch already exists, it just needs some unit tests:
http://trac.openlayers.org/attachment/ticket/2232/openlayers-2232.patch

Regards,
Andreas.

  or
 provide a style property to the regular polygon handler through the
 handlerOptions config option passed to the draw feature control:

 new OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.RegularPolygon, {
 handlerOptions: {
 style: OpenLayers.Feature.Vector.style['temporary']
 }
 });


 Hope this helps,



   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] gain performance by 300+ features

2009-09-02 Thread Christoph Ratke
Hi Michael,
do you have considered to use a WMS?

Best regards,
Christoph

Michael Handerek schrieb:
 Hi,

 I have to display some linefeatures generated from a set of gps position
 data. To do so, i have created a vector layer and a linestring feature
 from it. The data also contains information about moving direction I
 also have to render on the map. I tried to add point features to
 the vector layer with an external graphic rotated according the moving
 direction. If I render more than 300 features, the map will get
 extremely slow. I have a average amount of 1000+ features to render. 

 How can I render a high amount of features and gain performance?


 Regards,
 Michael

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users

   

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WFS layer prechargement with layer not visible possible?

2009-09-02 Thread Andreas Hocevar
Jimmy Aumard wrote:
 Hi Eric,

 How I know if the layer is loaded or not?

Register a listener for the layer's loadend event...

 And the user have possibility to save the point on layer (but not the
 same every time he have choice on hislayer).

... and add your Save control in that event. Then, register a listener
for e.g. each of your editable layer's visibilitychanged event (or an
application event if you use a different mechanism to change the
editable layer) and disable/enable the Save control for that layer.

Regards,
Andreas.


 For the Terms Of Service I don't know but it's just a prototype for
 the moment, if it's not possible with Google I take another geocoder
 for the finale version.

 Thanks

 Jim

 2009/8/27 Eric Lemoine eric.lemo...@camptocamp.com
 mailto:eric.lemo...@camptocamp.com

 On Wednesday, August 26, 2009, Jimmy Aumard
 jimmy.aum...@gmail.com mailto:jimmy.aum...@gmail.com wrote:
  Thanks Kris,
 
  My problem is :
 
  Users have possibility to search an address (geocoding google)
 and save this address(feature) on a vector layer (but maybe the
 layer is not charged). If layer was charged I have no problem but
 if layer was not charged the feature is not added on layer when
 layer was charged (feature erase).

 Why don't you enable the geocoding function only once the layer is
 loaded?

 PS: does the Google Terms Of Service allow you to use their geocoder
 and display the results on something else that Google maps?

 


 

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] RegularPolygon Radius

2009-09-02 Thread Andreas Hocevar
Hi Christopher,

the radius is always in map units. If your projection (e.g. EPSG:900913)
has units in m, then the RegularPolygon radius will be m, otherwise
(e.g. EPSG:4326), it will be degrees.

Regards,
Andreas.


Heidt, Christopher M. wrote:
 Is it possible for OL to create a circle with a metric radius?
 Can i have a 100 meter circle around my target?

 
 *From:* users-boun...@openlayers.org
 [mailto:users-boun...@openlayers.org] *On Behalf Of *Heidt, Christopher M.
 *Sent:* Thursday, August 27, 2009 10:08 AM
 *To:* users@openlayers.org
 *Subject:* [OpenLayers-Users] RegularPolygon Radius

 my users are going to want to supply a radius in a metric or english
 unit, but it looks like RegularPolygon is expecting degrees.
 So, my question is does OL have a builtin resource to convert my units?
 

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Openstreetmap with 23032 srid json

2009-09-02 Thread Andreas Hocevar
Alessandro Ronchi wrote:
 It's not possible?

It is, but you need to set your projections correctly and use proj4js. 
Please follow the instructions in
http://trac.openlayers.org/wiki/Documentation/Dev/proj4js to get started.

Two hints:
* OpenLayers only supports EPSG:4326 and EPSG:900913 out of the box
* 'WGS84' is not a valid projection, use 'EPSG:4326' instead.
* OpenLayers.Layer.OSM uses SphericalMercator by default, which is
'EPSG:900913' (not 'EPSG:4326').

Regards,
Andreas.


 2009/8/27 Alessandro Ronchi alessandro.ron...@soasi.com
 mailto:alessandro.ron...@soasi.com

 I need to show all my points I've stored on postgis together in a map.
 I'm able to show openstreetmap with my points, but they are out of
 their places.

 To make the point collection I use vectorformats (for django) that
 outputs a json.

 crs is empty.

 This is my html map:
 http://dpaste.com/86127/

 I need to translate the 23032 (points) projection into wgs84
 (openstreetmap) or do the inverse projection.

 How can I do that?
 Is it possible?


 --
 Alessandro Ronchi

 SOASI
 Sviluppo Software e Sistemi Open Source
 http://www.soasi.com




 -- 
 Alessandro Ronchi

 SOASI
 Sviluppo Software e Sistemi Open Source
 http://www.soasi.com
 

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] keep map displayed when loading on zoom

2009-09-02 Thread Andreas Hocevar
Florent Gravin wrote:
 Is there a way to keep the map displayed when you zoom (with bad
 resolution) until the new tiles with a better resolution are loaded.
 Like for exemple in Google Map where you NEVER have white map because
 data are loading..

This can be done in OL too. All you need is to pass

transitionEffect: resize

to the layer's options.

To see it in action and as a starting point for your own map, have a
look at http://www.openlayers.org/dev/examples/transition.html

Regards,
Andreas.


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] keep map displayed when loading on zoom

2009-09-02 Thread Adrian Popa
Sorry for butting in, but is this effect supposed to work also when the 
layer has singleTile='true'? (One image from mapserver)

Thanks

Andreas Hocevar wrote:

Florent Gravin wrote:
  

Is there a way to keep the map displayed when you zoom (with bad
resolution) until the new tiles with a better resolution are loaded.
Like for exemple in Google Map where you NEVER have white map because
data are loading..



This can be done in OL too. All you need is to pass

transitionEffect: resize

to the layer's options.

To see it in action and as a starting point for your own map, have a
look at http://www.openlayers.org/dev/examples/transition.html

Regards,
Andreas.


  



--
--- 
Adrian Popa

NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP  Metro
Compartiment IP Core  Backbone
Phone: +40 21 400 3099

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Strange. Labels treated as numbers

2009-09-02 Thread Andreas Hocevar
Christopher Schmidt wrote:
 On Fri, Aug 28, 2009 at 08:52:11AM +0200, Arnd Wippermann wrote:
   
 Hi,

 I want to label features by the attribute name ( label:${name} ). The
 labels should be 06.01, 06.10, 06.080 etc.. But displayed as labels are
 this: 6.01, 6.1, 6.08.

 Looking at the code I get no idea, where the place that cause this
 behaviour. Can someone help.

 Here is an example of this behaviour:
 http://gis.ibbeck.de/ginfo/apps/OL27Client/OL28ClientGis.asp?WMC=./data/WMC/
 strange%20labels.wmc.xml

 The black and red labels comes from equal attributes. Only the point is
 changed with a comma.
 

 Looks like the text is being treated as a number at some point.
 Specifically:

 OpenLayers.Style.createLiteral = function(value, context, feature) {
 if (typeof value == string  value.indexOf(${) != -1) {
 value = OpenLayers.String.format(value, context, [feature]);
 value = (isNaN(value) || !value) ? value : parseFloat(value);
 }
 return value;
 };

 Seems like that's slightly overzealous; not sure why we're parseFloating
 the value? (This comes down, to an extent, to OpenLayers not having
 strongly typed data parsing, so we don't know that something should or
 shouldn't be a number.)
   

The reason is that there are some symbolizer properties that only work
with numbers in IE (e.g. graphicWidth and graphicHeight).

 I'd be in favor of dropping the parseFloat entirely, but I'm not the one
 who put it there :) (Okay, literally speaking, I *did* put it there,
 with my commit in r5429, but I don't think I wrote that code myself.)
   

In a perfect world, this parseFloat would be done in the renderer, so
this issue deserves a ticket (Arnd, would you be so kind and create one?).

 Andreas, can you explain why this is here? And is it possible we could
 somehow make it optional? 
   

Why is it there? This code was written at a time where there were no
text labels, so it was easiest to put it there.


Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] Pink problems

2009-09-02 Thread McKinnon, Piper
I'm new to open layers and geoserver, but have been having speedy success until 
today when I tried to launch a simple open layers demo through IIS 6.0. 
Everything seems to work great except the loading of wms images. I get the 
dreaded pink tiles. When I attempt to view the image, I get the error can't 
establish a connection to the server at localhost:8080. The url is:
http://localhost:8080/geoserver/wms?LAYERS=nex%3ANexrad%20Stored%20ViewSRS=EPSG%3A26917TRANSPARENT=trueFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageBBOX=561922.474996,4764341.606474999,601058.2334749997,4803477.36494WIDTH=256HEIGHT=256

This seems like it's probably a common newbie problem, but I have searched 
endlessly for an existing answer to no avail. Any help is hugely appreciated.

Thanks,

Piper McKinnon
NPCA


The Niagara Peninsula Conservation Authority Confidentiality Notice
The information contained in this communication including any attachments may 
be confidential, is intended only for the use of the recipient(s) named above, 
and may be legally privileged. If the reader of this message is not the 
intended recipient, you are hereby notified that any dissemination, 
distribution, disclosure, or copying of this communication, or any of its 
contents, is strictly prohibited. If you have received this communication in 
error, please re-send this communication to the sender and permanently delete 
the original and any copy of it from your computer system. Thank you.


___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] RegularPolygon Styling

2009-09-02 Thread Eric Lemoine
On Wed, Sep 2, 2009 at 10:40 AM, Andreas Hocevarahoce...@opengeo.org wrote:
 Eric Lemoine wrote:
 On Tue, Aug 25, 2009 at 7:20 PM, Heidt, Christopher
 M.christopher.m.he...@saic.com wrote:

 The temporary style that exists in the other shape handlers
 doesn't seem to work with RegularPolygon.
 How do I change the style of a RegularPolygon during the draw phase?


 Hi.

 Either write a patch to Handler/RegularPolygon.js so it takes the
 layerOptions config option into account (as Handler/Point.js does),

 Such a patch already exists, it just needs some unit tests:
 http://trac.openlayers.org/attachment/ticket/2232/openlayers-2232.patch

Thanks for the information Andreas.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] IE7 vector rendering error

2009-09-02 Thread Eric Lemoine
On Wed, Sep 2, 2009 at 10:23 AM, Jo Cookj.c...@oxfordarch.co.uk wrote:

 Hi Eric,

 Yeah, that line is there

dunno what's going on then...

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMSGetFeatureInfo with IE

2009-09-02 Thread Eric Lemoine
On Wed, Sep 2, 2009 at 7:13 PM, Micho Garmicho...@gmail.com wrote:
 Hi all,

 I have a code to realise a GetFeatureInfo and runs well on Firefox but not
 return any result in IE. Reading the documentation I have not seen nothing
 about this. I think it work the same for both.

 Something about this??

Some code to show the list?


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemo...@camptocamp.com
http://www.camptocamp.com
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents

2009-09-02 Thread Kris Geusebroek
Hi,

If you are using geoserver you can create a wms request with format 
application/pdf et volia!

Cheers Kris

-Original Message-
From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] On 
Behalf Of Alexandre Dube
Sent: Wednesday, September 02, 2009 5:29 PM
To: fsalas
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] How Print openlayer Maps into pdf documents

Hi,

  Did you read http://trac.openlayers.org/wiki/Printing ?

  About eh ezpdf class extension, are you talking about this : 
http://www.ros.co.nz/pdf/ ?  If so, that's the lib I used with 
phpMapScript to accomplish some printing, but it supports WMS only and I 
use Ext to make my form.  So take this example as a proof of concept 
only.  See at :  
http://dev4.mapgears.com/wmsprint/

  MapFish has a much more better printing tool and it supports Vector 
features printing.

Best of luck,

Alexandre

fsalas wrote:
 Hi all,
  
 I'm trying to print the current image maps into pdf documents 
 using the  *EZPDF Class Extension,* but don´t work.
  
 some body know how i cant implement this.
  
 Thanks ,
  
 salas

 ___
 Dirección de Comunicaciones
 Grupo Empresarial GEOCUBA
 Este mensaje esta libre de virus.
 Revisado por Kaspersky Antivirus
 --
 Definition count: 2365875 Definition date: 8/11/2009 SecurityPlus 
 version: 3.0.5
 

 ___
 Users mailing list
 Users@openlayers.org
 http://openlayers.org/mailman/listinfo/users
   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] Ta not working on IE7

2009-09-02 Thread Andreas Hocevar
Hi,

bt is not a valid value for labelAlign. Also, make sure that you are
really working with OpenLayers 2.8 and not a release candidate, because
there was an issue with IE7 (http://trac.openlayers.org/ticket/2135).

Regards,
Andreas.


newbie wrote:
 Dear All,
Recently I just switch from openlayer2.7 to 2.8. Then I use this
 coding to get a tag beside my vehicle icon. The problem here is that it
 works fine in firefox and IE6. But in IE7 the tag is not appearing. Any
 solution for IE7?  pointFeature.style = {externalGraphic: imageName,
 graphicWidth:34,
 graphicHeight:17,
 pointRadius: 10,
 rotation: vehicleDetail3[1],
  
 label : test,
  
 fontColor: black,
 fontSize: 20px,
 fontFamily: Arial,
 fontWeight: bold,
 labelAlign: bt
};
 Thank you in advance.
   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


[OpenLayers-Users] map.getLayersBy() Question

2009-09-02 Thread Bill Thoen
I'm trying to use getLayersBy() to select layers for a getFeatureInfo 
tool, and I can get it to work for one criterion : 
map.getLayersBy(queryable, true) , but suppose I want to use two 
criteria, like where queryable and visibleity are BOTH true? I can't 
seem to get the right syntax.


TIA,
- Bill Thoen

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users


Re: [OpenLayers-Users] WMSGetFeatureInfo doesnt seem to work

2009-09-02 Thread Andreas Hocevar
Hi,

just a guess: try specifying the srs as projection property in the layer
option, not as (commented out) srs property in the layer params.

Regards,
Andreas.

Dominik Wiedner wrote:
 Hi guys,

 Currently I try to find my way in to OpenLayers.

 The problem, I'm currently facing, is that this code:

 function load () {
 var map = new OpenLayers.Map('map');
 var wms = new OpenLayers.Layer.WMS(
 OpenLayers WMS, http://labs.metacarta.com/wms/vmap0;,
 {
 layers: 'basic',
 //srs: 'EPSG:31467',
 format: 'image/gif'
 }
 );
 var studiwohn = new OpenLayers.Layer.WMS(
 Studentenwohnheime , http://localhost:8080/geoserver/wms;,
 {
 layers: 'topp:Studentenwohnheime',
 //srs: 'EPSG:31467',
 transparent: 'true',
 format: 'image/gif'
 }
 );
 map.addLayers([wms, studiwohn]);
 map.zoomToMaxExtent();
 var info = new OpenLayers.Control.WMSGetFeatureInfo({ url:
 'http://localhost:8080/geoserver/wms', title: 'Identify features by
 clicking',
 queryVisible: true,
 eventListeners: {
 getfeatureinfo: function(event) {
 map.addPopup(new OpenLayers.Popup.FramedCloud(
 chicken, map.getLonLatFromPixel(event.xy),
 null,
 event.text,
 null,
 true
 ));
 }
 }
 });
 map.addControl(info);
 info.activate();
 map.addControl(new OpenLayers.Control.LayerSwitcher());
 }

 doesn't work very well, when I click on one of my features in the Layer
 Studentenwohnheime, i can see that a query is submitted to the server, but
 no result is being sent back.

 Kind regards,
 Dominik
   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users