Hi All,
The maxExtent map option doesn't seem to be carried over to an XYZ type
of layer. Looking at the initialize function of an XYZ layer, I see the
maxExtent is hardcoded whereas it is not in e.g. a Google type. Why is
that so ? The difference in behaviour means we can't use a maxExten
Hi,
There's a rather long and recent thread you might be interested in on
the OSGeo-discuss mailing list : Drupal GEO mailing list proposal. I
suspect that would be a good place to look for info on the use of OL in
Drupal.
HTH,
Yves
Hi,
I have a question concerning OpenLayers and Drup
Le 2010-07-16 11:19, Gilberto Ramos a écrit :
> Mapfish client = GeoExt + Openlayers
> GeoExt = ExtJS + Openlayers
>
> I use Mapfish just as client! It has very nice widgets that would safe you a
> couple of hours coding.. The result is the same you would obtain coding with
> GeoExt because both us
Le vendredi 29 janvier 2010 à 11:54 -0500, Alexandre Dube a écrit :
> Hi,
>
> I looked at the tickets and couldn't find any refering to this issue
> so I create one [1]. Yves, could you please attach your patch to it ?
Done. It's a very crude patch ...
Yves
_
> Yes, I think the format should behave gracefully on such cases. IIRC
> with the patch I committed for WFS the format doesn't throw an
> exception or ouput an error message, it just silently returns no
> features. But I agree it may make sense to warn the caller by raising
> an exception or somet
> Yes, I think the format should behave gracefully on such cases. IIRC
> with the patch I committed for WFS the format doesn't throw an
> exception or ouput an error message, it just silently returns no
> features. But I agree it may make sense to warn the caller by raising
> an exception or somet
Hi All,
I think I hit a bug in Format/WMSGetFeatureInfo.js. I have a case where
a layer returns an incomplete response like :
http://www.opengis.net/gml";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
This raises t
> >
> > In order to avoid coming up with some half-baked hack, I wonder if
> > people on this list see this feature as a "core" OpenLayers feature.
>
> Personally speaking: No.
A "non-core-but-useful" feature then ? At any rate, who would want such
a feature in OL and where should it be in th
> > I was asked to provide users with text boxes so that they can enter
> > coordinates they want a vertex or point moved to in RESHAPE mode.
Hi List,
In order to avoid coming up with some half-baked hack, I wonder if
people on this list see this feature as a "core" OpenLayers feature. If
so,
> On Monday, December 21, 2009, Yves Moisan wrote:
> > Hi All,
>
> Hi Yves
>
> > I was asked to provide users with text boxes so that they can enter
> > coordinates they want a vertex or point moved to in RESHAPE mode. I
> > thought of a "MANUAL_RESHAPE
Hi All,
I was asked to provide users with text boxes so that they can enter
coordinates they want a vertex or point moved to in RESHAPE mode. I
thought of a "MANUAL_RESHAPE" option, but looking at ModifyFeature.js
shows that all values on the byte are taken :
OpenLayers.Control.ModifyFeature.RES
>
> I'm not sure I get it. Why don't you do the whole thing once the layer
> is loaded?
>
> layer.events.on({
> scope: layer,
> loadend: function() {
> // "this" references the layer
> var features = this.features;
> // do what you need with the features
>
> Wrap your function in anonymous instead.
> layers[0].events.register("loadend", layers[0], function(evt){
> //do what you have to do here...
>selectFeature(layers[0],oFeatures[0].fid));
> });
>
Well, the use case is a bit more complicated. I calculate initial
bounds for a feature then
> Wrap your function in anonymous instead.
>
> BTW map doesnt have loadend event but on vector layer
> http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.EVENT_TYPES
> http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.EVENT_TYPES
Yes, I notice
>
> Try calling your select function using a timer delay from loadend event.
I tried looking for examples. I saw the obvious controls for which a
delay makes sense (hover, WMSGetFeatureInfo) but I didn't find a way to
set a delay in some arbitrary location in the code. setTimer, timer ?
Howe
> I thought
>
> MyMap.events.register("loadend", layers[0],
> selectFeature(layers[0],oFeatures[0].fid));
>
I at least learned that a loadend is only registerable on a layer, so :
layers[0].events.register("loadend", layers[0],
selectFeature(layers[0],oFeatures[0].fid));
It still does not s
strURL += strSeparator + strParams;
}
OpenLayers.loadURL(strURL, '', null, zoomInitialViewCallback);
} //end zoomInitialViewOnFeature
zoomInitialViewOnFeature("1");
So it's the zoomInitialViewOnFeature
Hi List,
I'm trying to wrap my head around OpenLayers events. Here's code that
works if I uncomment the first line (alert) :
// alert("Highlight on")
function selectFeature(layer, fid)
{
for(var i = 0; i 0)
{
var bounds = oFeatures[0].ge
a new style.
>
> Arnd
>
>
>
> -Ursprüngliche Nachricht-
> Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im
> Auftrag von Yves Moisan
> Gesendet: Dienstag, 24. November 2009 21:01
> An: users
> Betreff: [OpenLayers-Users] Commo
Hi All,
I'm trying to get a common style for any of (point,line,polygon). I
thought something like :
var s = new OpenLayers.Style({
fillColor: "#FF",
strokeColor: "#FF",
strokeWidth: 2
});
var myStyles = new OpenLayers.StyleMap(s);
would wor
> However, see http://trac.openlayers.org/ticket/2155 -- which could probably
> be a Map level option to always change zoomTOMaxExtent to use the restricted
> Extent, if one exists.
Thanx for the pointer. However I wonder why clicking on the PanZoom's
"world" icon works as expected for Google, Y
Hi All,
I have an overlay problem with an OSM layer. I'm using a TMS style OSM
base layer and it seems impossible to restrict the extent. When zooming
to maxextent, it won't bother a restricted extent map directive. I
tried displayOutsideMaxExtent = false and it does not change anything.
Looki
Hi All,
I've copied the OL spherical mercator example on my server and I notice
the following : Google, Yahoo! and OSM (GYOSM) superimpose exactly and
MS (VE and BING) superimpose with respect to each other, but not with
respect to the GYOSM bunch. Even more : a WMS layer will map correctly
over
>
> You'll probably have the most luck asking me directly about jst :)
Didn't mean to bother you directly, but I figured somebody from the
GeoEXT crowd would chime in ;-)
>
> As far as I'm concerned, the jury is still out about the best
> documentation tools around. We invested a good bit of
> AFAIK Sphinx doesn't have a built-in mechanism for auto-documenting
> JavaScript code. GeoExt has its own mechanism (jst) for that.
Thanx Eric. In the meantime I realize that Sphinx "isn’t primarily a
tool for fully-automatic API and code documentation. Instead, its focus
is on narrative docum
Hi All,
We're looking at a documentation engine and I see OpenLayers uses ND for
the API and Sphinx for its docs. Is this dual scheme for documentation
a matter of circumstance (e.g. ND was used first and Sphix was found to
be relevant later) or are there relative merits to ND for API doc and
Sph
>
> I would like to display at the bottom of the map the info on the
> copyright or the owner of a layer.
http://openlayers.org/dev/examples/ Attribution example
Yves
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listin
> I am not advocating violating Goggle TOS, but it seems that the end user
> always has the ability to use something like SnagIt or PrintScrn or
> ctrl-PrintScrn to capture their screen image and then paste that into
> another document and print from there.
I guess that works for the odd one-o
Hi All,
Maybe this is not the right mailing list to ask, but since I saw a post
about the state of OAM a while back on this list I'll post here (please
redirect me to a better place to post if there is one).
We are looking at the possibility of offering OSM data to some
customers. However, AFAIK
Thanx Chris.
I bumped across a styleId parameter a few weeks ago that comes with the
CloudMade API e.g.
http://maps.cloudmade.com/?lat=37.337664&lng=-121.892087&zoom=17&styleId=1045
Are there OL maps out there that poke the CloudMade API ? I'm
particularly interested in how one can make one's
Hi All,
I'm looking for documentation pointers that explain the differences
between OSM Maphik and ti...@home. Specifically, I need to enable an
OSM basemap on an OL 2.6 (in production) and looking at the source of
the examples, I foud three different ways to have an OSM base map :
1) sundials-s
the customer a dual approach : OSM and Yahoo! Suggestions /
experiences to share ?
TIA,
Yves Moisan
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
> For my needs I have come up with this:
>
> * A separate table for the cluster features, with columns
>for the geometry (a point), a feature count and the scale
>(i.e. I store the cluster points for all scales in one
>table)
>
> * A view for each scale
>
>"create view cluster_1
>
> I don't know if this is interesting for you but this postgis thread was
> related to the subject of your mail :
>
> http://postgis.refractions.net/pipermail/postgis-users/2005-July/008642.html
>
That series of posts is about statistical data clustering as in k-means
and the like. Give a k-
> has anyone tried clustering features on the server
> side, and if so how did you do it?
Please post any answer to the list. I'm very interested too ;-)
Cheers,
Yves
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinf
; [1] www.geobi.org
> [2] http://code.google.com/p/pentaho-cdf/
> [3] http://forums.pentaho.org/showthread.php?t=67960&page=2
>
> Fabio D'Ovidio
>
> 2009/3/12 Yves Moisan
> > Hello,
> > in order to use jquery library toghether with mapfish
> Hi all: Are there any guidelines for the number of vector features that OL
> 2.7 can handle? I'm feeding is 450 point features
> as GeoJSON and IE 7 in particular takes forever (ok, just a minute or so) to
> render the interface. Firefox 2 is quicker but is
> jerky with pan and box zooms.
S
> But, actually, there are so many people needing that thing that it may
> be valuable to have it in trunk.
Having a select control and a "highlight" control that just styles
features so that you know which one you have info for without actually
selecting it plus having an efficient strategy to d
Since that was alson posted on the list ...
--- Begin Message ---
Hi Chip,
Le mardi 13 janvier 2009 à 14:28 -0800, Chip Taylor a écrit :
> Just curious about your statement "I don't think we should take it upon
> ourselves to waste
> beautiful Saturdays generating documentation for free (person op
> allthough it would be
> nice if you didn't need to use your free time on it.
That's the unfortunate lot of most FOSS projects. One day governments,
universities and all the other large or small bits of common
infrastructure our taxpayer money can buy can turn themselves into
money/resource sup
robability that I end up with a number of clustered features <
maxfeatures grows with zoom level ! If I ask for 2 features at a zoom
level of 20, I may get nothing in my viewport. Could be rather
puzzling.
Thanx for sharing your trick.
Yves
>
> hope it helps,
> ivan
>
>
>
> See the ratio property of the BBOX strategy. You may want to set it to 1
> (the default is 2, which means it will request a bbox twice as large as
> the viewport).
Thank you.
> >
> > http://www.flickr.com/photos/30818...@n05/3182451587/ shows BBOX +
> > Cluster maxFeatures = 200 on the l
> My bad. It should read
> new OpenLayers.Strategy.BBOX({invalidBounds: function(){return true;}})
Well, I was dumb enough to stick it in the Cluster() strategy of my
2-strategy layer on my side of the story :-(. At any rate, I can
confirm that an XHR is done on zoom in now.
I still have issues
> You are probably referring to
> http://n2.nabble.com/bbox-strategy-and-zooming-td1836240.html#a20489423
Yep.
>
> New features will only be fetched if you zoom out, not if you zoom in. I
> had forgotten about this thread in my previous reply, sorry for the
> confusion.
I realized that indeed.
> What you are describing looks like you do not use the BBOX strategy.
Andreas,
Here's my vector layer :
pts_gps = new OpenLayers.Layer.Vector("GeoJSON", {
strategies: [new OpenLayers.Strategy.BBOX(),new
OpenLayers.Strategy.Cluster()],
protocol: new OpenLayers.Protocol.HTTP({
u
>
>
> If your use case involves highlighting only up to ~100 features, you can
> just load the features to be highlighted using the WFSGetFeature control
> and display them on a vector layer overlaying the WMS layer (see the
> example in my previous post, which does exactly that). If you have m
>
>
> Why that? Features can be handled much more efficient by the server than
> by the client.
Right. Maybe it's me but I find it clumsy to do a WMS GetFeatureInfo.
You're never sure what features you get results from if there are a
bunch of features. For example, you cannot easily highligh
> Might the Hover to a WMS server work then?
Thanx for the suggestion. It's still a trip to the server and I find it
foolish to be required to turn features into a WMS.
> > I guess an option would be to calculate the clusters on the server, e.g.
> > set up some trigger in PG and calculate clu
> You need to limit DOM elements. WMS with a query-on-click works for
> that.
Right. The whole purpose of having features is defeated though and
that's a drag. I'm really not fond of query-on-click to a WMS server.
I played with the clustering strategy in a bid to limit the number of
features
Hi All,
You've seen my previous post about IE issues with a large number of
features. Well, our customers all use IE and there's unfortunately no
way around that. Not being able to use OL with a decent number of
featues in IE is an almost showstopper for us, so I'm asking the
community :
- are
> How much data are you loading? (How many features?) Is it more than 100?
> Are they complex features?
1000 features, but luckily they are just points.
> The 'proxy' part of it is probably not the problem, but if you're trying
> to do the same thing in FF3 and IE7, I wouldn't be surprised to he
Hi All,
I'm experiencing a problem viewing a small OL 2.7 page in IE. I'm using
the OpenLayers proxy because I'm requesting features from FeatureServer
on another port. Everything works fine in FF3 but IE7 stalls on the
proxy and it starts eating up memory in what looks like an infinite
loop. I
Le samedi 20 décembre 2008 à 09:10 +0100, Eric Lemoine a écrit :
> Yves
>
> If you use OpenLayers.Protocol.HTTP, which I'd recommend you do, you
> won't need to use OpenLayers.Request yourself.
That's what I'm doing indeed in my vector layer. I was thinking of
using a syntax like
new OpenLay
gt; work, and if it doesn't I'll be happy to help with that.
>
> Cheers,
>
> Eric
>
> 2008/12/19, Yves Moisan :
> >
> >> Don't use Ajax.js. Use OpenLayers.Request.
> >>
> >> http://trac.openlayers.org/wiki/Request
> >
> &
> Don't use Ajax.js. Use OpenLayers.Request.
>
> http://trac.openlayers.org/wiki/Request
Right. I saw this is new in 2.7. I'd prefer an example than to fiddle
with Request.issue ... Method=DELETE or request.DELETE.
I'm now at 2/4 into the Crockford series ;-)
Cheers,
Yves
___
Hi All,
I'm putting together a simple CRUD OL + FeatureServer set up and I can
do everything except DELETE. Looking at the Ajax.js code, only GET and
POST are accepted. How did this :
http://featureserver.org/demo/json.html ever work (function del) ? Are
there functioning demos of features bein
> Because we haven't gotten a patch yet.
I stole the getFeaturebyFid at
http://openlayers.org/pipermail/commits/2007-October/003290.html and
plucked into a Layer.Vector object as follows :
pts_gps = new OpenLayers.Layer.Vector("GeoJSON", {
strategies: [new OpenLayers.Strategy.BBOX()],
> Do I have to code my own
> > similar to the implementations I found (for loop on all features) or is
> > the function hidden in some sandbox ?
>
> The former.
I suspect this is a rather general use case since people know their
objects because they're stored in their DB's with know PKs, so may
Hi All,
I din't find such a function in OL 2.7. Do I have to code my own
similar to the implementations I found (for loop on all features) or is
the function hidden in some sandbox ?
Cheers,
Yves
___
Users mailing list
Users@openlayers.org
http://ope
> How about something like that:
> var context = function(feature) {
> return {
> state: feature.state || OpenLayers.State.UNKNOWN
> };
> };
That did thanx ! The example I based my work on had a context that
returned feature instead of the feature state. I'll go see how
addUni
> The state of features read from your web service is null, isn't it? Do
> you really need it to be "unknown"?
You are right. I got it almost working. If only I could assign a style
to feature.state = null, I'd be done
var lookup = {};
@@ lookup["null"] = {fillColor: "blue"}; @@
> > pts_gps = new OpenLayers.Layer.Vector("GeoJSON", {
> > // styleMap: styleMap,
> >strategies: [new OpenLayers.Strategy.BBOX()],
> >protocol: new OpenLayers.Protocol.HTTP({
> >url: "http://myserver/P
> My first thought is that after the data is loaded, if I could get the
> feature by ID or attribute and then destroy it, that would be great.
If you get to doing something like that, please share your code :-).
I'm trying to do something similar, that is set the state property of
the features in
e, you can easily do this with events at the layer's level
> [1]
> - to have different styles for the different states. [2]
>
> Regards,
> Pierre
>
> [1] http://www.openlayers.org/dev/examples/protocol-gears.html
> [2] http://www.openlayers.org/dev/examples
Hi All,
I'm playing with something similar to
http://openlayers.org/dev/examples/vector-formats.html and I was
wondering what the approach is if I want to allow users to add e.g.
points on an existing layer.vector object but with a different symbol.
The idea is that I would like objects updated to
I like the gröSSe option :-). An English UI would help me as a French
speaker. Mein Deutsch nicht sehr gut ist :-)
Yves
Le jeudi 27 novembre 2008 à 15:44 +0100, Dipl. Inf. Carsten Eider a
écrit :
> Hi list,
>
> my work on a GeoEditor is nearly completely done.
>
> Features:
> * using Ope
> > So I understand that the title column can be named something else like
> > name ?
>
> I'm not sure I understand your question. Is your question "Can the
> OpenLayers code be changed to support this?" If so, the answer is, in my
> opinion, "no": this format only exists for historical reasons,
Le lundi 17 novembre 2008 à 14:23 -0500, Yves Moisan a écrit :
> > > >
> > > > How does it not? can you provide an example? It should.
> > >
> > > The only thing I can think of is that my textfile is not read the same
> > > way by both fo
Le lundi 17 novembre 2008 à 12:51 -0500, Christopher Schmidt a écrit :
> On Mon, Nov 17, 2008 at 11:44:50AM -0500, Yves Moisan wrote:
> >
> > > >
> > > > projects = new OpenLayers.Layer.Text( "Projects",
> > > > {location:"project-l
Sorry about the previous email ...
--- Begin Message ---
> >
> > projects = new OpenLayers.Layer.Text( "Projects",
> > {location:"project-locations.txt", projection: new
> > OpenLayers.Projection("EPSG:4326")} );
> >
> > projects = new OpenLayers.Layer.GML("Projects",
> >
--- Begin Message ---
Tu eux faire la mise à jour sur 134. Assure-toi de ne pas écraser le
répertoire Maps.
Yves
--- Begin Message ---
Salut Yves,
On en discute demain, je serai a Magog, pour le moment ne met rien sur
le serveur auraminerals.
Merci,
Christelle
Yves Moisan a écrit :
Je
"project-locations.txt",
{format: OpenLayers.Format.Text, projection: new
OpenLayers.Projection("EPSG:4326") });
Form 1 works, form 2 does not ?
Yves Moisan
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
controlled by Apache, problems vanished.
My 2 cents,
Yves Moisan
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
that would allow me to group layers and hide them in bunch ?
I am asking this because the control is bound by the map window and I
can't make that window bigger.
Thanx for pointers,
Yves Moisan
___
Users mailing list
Users@openlayers.org
n/zoom out, which results in
contents being partly hidden.
This is probably pushing a bit much, but ideally one would have a choice
of popup object when using a text layer. I would like to use a
FramedCloud, but I did not see examples with text layers. Thanx fo
pointe
nlayers map is
defined that one wants to send url paramters to needs to be "viewified"
like in the viewer example. Are there higher level wrappers to allow
one to pass url parameters to existing html files or do we need to
modify the html files directly ?
TIA,
Yves Moisan
___
mapfish)
I guess that may be useful for your endeavours.
Yves Moisan
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
> Hello. You need to create a GML layer object by passing the
> constructor the url to your text file and in the options object the
> text format class to be used for parsing
> (format:OpenLayers.Format.Text)You're right that having an example on
> that would be useful.
This looks like a good exa
', 'HTTP_COOKIE': ...)
think about *not* using file:/// :-).
Yves
Yves Moisan <[EMAIL PROTECTED]> wrote: Hi All,
Audience of this message : users of MapServer (WMS).
I'm trying to find examples of how to retrieve attributes from a postgis
table served via MapServer WMS. I h
David,
Just for the record, I had some success with my GetFeatureInfo popup.
First, using window.open(url) instead of OpenLayers.loadURL(url, '', this,
setHTML); (see http://www.nabble.com/GetFeatureInfo-problems-td14985142.html).
This opens a new tab in FF3 (haven´t tested on IE) so it´
North America"
"WMS_SRS" "epsg:4326"
GML_INCLUDE_ITEMS
"DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat"
WMS_INCLUDE_ITEMS
"DisplayNam,OneGeology,Lithologic,GeologicAg,AgeMin,AgeMax,AgeMetadat"
END # metadata
END #l
ayers_POI_layer_example).
OOTB, one gets a nice popup, default icon and default html formatting.
I wonder if one could get as easy a popup solution for a WMS served
queryable layer ? I wouldn't be so crazy as to generate a textfile on
the fly to duplicate my layer so that it becomes easily queryable ...
Thanx for pointers,
Yves Moisan
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
.openlayers.org/browser/trunk/openlayers/lib/OpenLayers/Request.js?rev=7335
seems to cater for headers. Are there ways of doing that with the current
version of OL ?
TIA,
Yves Moisan
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
83 matches
Mail list logo