Look into using OpenLayers.Layer.GML with format: OpenLayers.Format.GeoJSON,
as shown with some other types here:
http://docs.openlayers.org/library/layers.html#gml
And then there's info on styling here:
http://docs.openlayers.org/library/feature_styling.html
--
View this message in context:
ht
Hi,
This is my first post and I wanna congratulate for your project.
I'm creating a layer based in geojson output.
var geojson_format = new OpenLayers.Format.GeoJSON();
var gs = geojson_format.read( my_output ,"FeatureCollection");
And in this output I have some propierties I wanna r
Hi,
This is my first post and I wanna congratulate for your project.
I'm creating a layer based in geojson output.
var geojson_format = new OpenLayers.Format.GeoJSON();
var gs = geojson_format.read( my_output ,"FeatureCollection");
And in this output I have some propierties I wanna r
February 2010 3:11 AM
To: Christopher Schmidt
Cc: John Phan; users@openlayers.org
Subject: Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]
On Mon, Feb 15, 2010 at 4:50 PM, Christopher Schmidt
wrote:
> On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote:
>>
On Mon, Feb 15, 2010 at 4:50 PM, Christopher Schmidt
wrote:
> On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote:
>> On Monday, February 15, 2010, John Phan wrote:
>> >
>> > Hi,
>> >
>> > I'm kind of new to OpenLayers. But I want to use GeoJSON to request
>> > geometric features using
On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote:
> On Monday, February 15, 2010, John Phan wrote:
> >
> > Hi,
> >
> > I'm kind of new to OpenLayers. But I want to use GeoJSON to request
> > geometric features using the geometric type: MultiPoint.
> >
> > The browser has no problems r
On Monday, February 15, 2010, John Phan wrote:
>
> Hi,
>
> I'm kind of new to OpenLayers. But I want to use GeoJSON to request geometric
> features using the geometric type: MultiPoint.
>
> The browser has no problems rendering the vector layer.
>
> Now how do I associate an onclick event with ea
Hi,
I'm kind of new to OpenLayers. But I want to use GeoJSON to request geometric
features using the geometric type: MultiPoint.
The browser has no problems rendering the vector layer.
Now how do I associate an onclick event with each of these points (rather than
a collection of points).
My
Gesendet: Mittwoch, 6. Januar 2010 17:10
An: Andreas Hocevar
Cc: users@openlayers.org; users-boun...@openlayers.org
Betreff: Re: [OpenLayers-Users] geojson - Performance issue
Thanks for this alternative Andreas.
I don't know much about sld but I read some threads and it seems to be the
ca>_
> __http://www.inspq.qc.ca_ <http://www.inspq.qc.ca/>
>
>
>
>
>
>
> *Andreas Hocevar @openlayers.org*
> Envoyé par : users-boun...@openlayers.org
>
> 06/01/2010 10:35 AM
>
>
> A
> users@openlayers.org
> cc
>
>
users-boun...@openlayers.org
06/01/2010 10:35 AM
A
users@openlayers.org
cc
Objet
Re: [OpenLayers-Users] geojson - Performance issue
Hi,
2000+ features is way too much for rendering in the browser.
if you use mapserver already, then you can also query the layer as WMS
layer, using sld_b
Hi,
2000+ features is way too much for rendering in the browser.
if you use mapserver already, then you can also query the layer as WMS
layer, using sld_body with a filter. If your query is complex, use
Layer.WMS.Post instead of Layer.WMS to avoid urls that are too long for IE.
Regards,
Andreas.
Hi,
I created a WMS (mapserver) layer containing 13400 polygons. It loads in
less then 3 seconds. Good.
I need to develop a tool for the user so he can create a custom query on
this layer to retreive specific polygons. In a form, the user select the
parameters and launch the request. Here is th
i must add that the problem occurs only in Internet explorer 7 or 8
- Original Message -
From: Pierluigi Santin
To: users@openlayers.org
Sent: Monday, September 28, 2009 12:54 PM
Subject: geojson google maps zoom levels
i have a big problem
i'm managing to overlay a geo
i have a big problem
i'm managing to overlay a geojson layer to google maps
i did it succesfully
my problem is that when i zoom in too much my geojson level disapperar
i cannot get the problem
can someone help me?
this is the code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultOL.a
Hello,
you are right, my mail wasn't clear. Whant I wanted to do is change the icon
of the feature in function of an attribute. I thought that the filter funcion
would help me to do that but then I discovered this solution:
var style = new OpenLayers.Style({
'pointRadius': 10,
'exter
On Fri, Sep 11, 2009 at 10:36:32AM +0200, Adrian Ribao wrote:
> Hello,
>
> I'm trying to use GeoJSON Format but I can't make the filter function work.
> Could someone give me an example please?
You're trying to describe how you're trying to do something, instead of
what you're trying to do. I rec
Hello,
I'm trying to use GeoJSON Format but I can't make the filter function work.
Could someone give me an example please?
Thank you very much!
Regards,
Adrián.
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
On Fri, May 01, 2009 at 09:49:42AM +0100, Peter Robins wrote:
> On Thursday 30 Apr 2009, Christopher Schmidt wrote:
> > On Thu, Apr 30, 2009 at 09:34:23AM +0100, Peter Robins wrote:
> > > On Wednesday 29 Apr 2009, Christopher Schmidt wrote:
> > > > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Ro
On Thursday 30 Apr 2009, Christopher Schmidt wrote:
> On Thu, Apr 30, 2009 at 09:34:23AM +0100, Peter Robins wrote:
> > On Wednesday 29 Apr 2009, Christopher Schmidt wrote:
> > > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote:
> > > > I've been having a bizarre problem where the same
On Thu, Apr 30, 2009 at 09:34:23AM +0100, Peter Robins wrote:
> On Wednesday 29 Apr 2009, Christopher Schmidt wrote:
> > On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote:
> > > I've been having a bizarre problem where the same data (from
> > > featureserver) has been displayed when in k
On Wednesday 29 Apr 2009, Christopher Schmidt wrote:
> On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote:
> > I've been having a bizarre problem where the same data (from
> > featureserver) has been displayed when in kml format, but not in geojson.
> > Delving into the code, I find this
On Wed, Apr 29, 2009 at 09:03:24AM +0100, Peter Robins wrote:
> I've been having a bizarre problem where the same data (from featureserver)
> has been displayed when in kml format, but not in geojson. Delving into the
> code, I find this is because geojson.read throws an error if there are more
I've been having a bizarre problem where the same data (from featureserver)
has been displayed when in kml format, but not in geojson. Delving into the
code, I find this is because geojson.read throws an error if there are more
than 2 coords in a point. Why is this? 3d points are perfectly valid
Hi Eric,
I've already passed through something like this. At least the code looks
similar to me. Code is below:
var mycontext = {
getColor: function(feature)
{
var jsonvalue = feature.attributes["fillcolor"];
return jsonvalue;
}
};
var contexttemplate = {
fillOpacity: 0.
On Thu, Dec 4, 2008 at 11:25 PM, Adorian Ardelean <[EMAIL PROTECTED]> wrote:
> Hi Alexandre,
>
> No. This is very similar to what I had initially except adding "select"
> style to stylemap. At click on feature, the select style is applied, but no
> edit of vertex is possible (no drag-able circles a
Hi Alexandre,
No. This is very similar to what I had initially except adding "select"
style to stylemap. At click on feature, the select style is applied, but no
edit of vertex is possible (no drag-able circles appear on vertexes).
So I can make the layer editable by adding rule, but unfortunatel
This works for me:
var crop_style = OpenLayers.Util.extend({},
OpenLayers.Feature.Vector.style['default']);
crop_style.strokeWidth = 3;
crop_style.strokeColor = "#ff";
crop_style.fillOpacity = 0.25;
crop_style.pointRadius = 2;
Hi,
Maybe this can helps.
var oStyle = new OpenLayers.Style({
pointRadius: "${radius}",
fillOpacity: 0.4,
strokeColor: "#00",
strokeWidth: 2
}, {
context: {
radius: function(feature) {
return Math.min(feat
Hi Eric,
No...it is not working yet. There is some improvement indeed: I can see now
the selection style, but vertexes are still not editable.
I have tried to adapt the suggestion in post I have mentioned earlier.
var styleMap = new OpenLayers.StyleMap();
var rules = [new OpenLayers.Rule({
symb
Hello
Try:
new OpenLayers.StyleMap({
"default": yourStyle
});
Hope this helps,
Eric
2008/12/4, Adorian Ardelean <[EMAIL PROTECTED]>:
> Hi again,
>
> I have eliminated also the context for style as a source of problem for the
> modifyFeature control not working. So it seems that just by spe
Hi again,
I have eliminated also the context for style as a source of problem for the
modifyFeature control not working. So it seems that just by specifying a
styleMap as option when declaring the vector layer makes the modifyFeature
control not functional.
var template = {
fillOpacity: 0.6,
nt:* Thursday, December 04, 2008 10:17
> *To:* [EMAIL PROTECTED]
> *Cc:* users@openlayers.org
> *Subject:* Re: [OpenLayers-Users] GeoJSON layer and modifyFeature control
>
> Hi Jan,
>
> In test case, it does not work even if I have only one layer and one
> modifyFeature cont
(modifyControl);
modifyControl.activate();
Hope this helps.
Kind regards,
Jan
_
From: Adorian Ardelean [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 10:17
To: [EMAIL PROTECTED]
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] GeoJSON layer and modifyFeature
gt; *Sent:* Thursday, December 04, 2008 09:47
> *To:* users@openlayers.org
> *Subject:* [OpenLayers-Users] GeoJSON layer and modifyFeature control
>
> Hi,
>
> I have a very simple question: is it possible to modify features in a layer
> populated from a GeoJSON file? I am asking just a
@openlayers.org
Subject: [OpenLayers-Users] GeoJSON layer and modifyFeature control
Hi,
I have a very simple question: is it possible to modify features in a layer
populated from a GeoJSON file? I am asking just about modifying feature on
map without the saving part.
I did add the modifyFeature
Hi,
I have a very simple question: is it possible to modify features in a layer
populated from a GeoJSON file? I am asking just about modifying feature on
map without the saving part.
I did add the modifyFeature control, but I cannot select and modify any of
the polygons in this layer ( var region
Hi Robert,
For this specific application I have not included the modifyFeature control,
but information on patch is helpful because I have another application that
involves both controls. Unfortunatelly, this second application is too
embedded in a CMS-like environment and it will require me some
Hi Adorian
Do you remember Eric Lemoine saying that the selectFeature and modifyFeature
controls don't behave well together - there is a patch for that:
See #1741. That would be good to know if the patch makes your problem
go away. Eric
2008/10/16, Eric Lemoine <[EMAIL PROTECTED]>:
> Hi. Do
Hi Robert,
Thank you for your reply! I have a very similar way to load the geoJSON file
and handle the controls outside map div. Except that I put part of code for
loading geoJSON in a function: I want only one GeoJSON layer in which I
load/switch an indeterminate number of GeoJSON files. This par
Hi Adorian
I have some code that does this:
//First I specify the format
var geojson_format = new OpenLayers.Format.GeoJSON();
//Then I load some geoJSON from another Web page:
var cropsurl =
'http://web-cf8dev.agriquality.co.nz/wstest/scid_ajax.cfm?mode=getFeatures&Farm_id='
+ farmid;
Open
Hi,
I am trying to link a SelectFeature control to a dynamically loaded GeoJSON
layer. I would like to serialize features drawn in this layer, but it seems
that SelectFeature control does not work for me. Hover effect does not show
either. Features from JSON layer are polygons.
I would like to kn
The styleMap option must remain a vector layer option. So you now use
Layer.Vector in place of Layer.GML, and pass the styleMap option to
the vector layer ctor. Hope that helps. Eric
2008/7/2, Adorian Ardelean <[EMAIL PROTECTED]>:
> Hi,
>
> *Yes* the position of features on map is OK now (I initi
OK I found solution: I had to place stylemap as option when defining
specimen vector layer.
Hope all is ok now.
Thank you,
Adorian
http://mybiosis.info
On Wed, Jul 2, 2008 at 8:16 PM, Adorian Ardelean <[EMAIL PROTECTED]> wrote:
> Hi,
>
> *Yes* the position of features on map is OK now (I init
Hi,
*Yes* the position of features on map is OK now (I initially added in the
same place only this: "projection: new OpenLayers.Projection("EPSG:4326")".
Thank you!
However, the style map does not function yet.
Works OK under:
specimens2 = new OpenLayers.Layer.GML("specimens", "geojson.php", {f
Hi. How about that:
var format = new OpenLayers.Format.GeoJSON({externalProjection: new
OpenLayers.Projection('EPSG:4326'),internalProjection:
map.getProjectionObject()});
Note that i haven't tested this.
Eric
2008/7/2, Adorian Ardelean <[EMAIL PROTECTED]>:
> Hi,
>
> First of all thank you for
Hi all,
I realize now that some parts of the code in my previous message included
bits from trials. So the correct and functional code for second version of
loading a GeoJSON file would be:
OpenLayers.loadURL("geojson.php", {}, null, onLoadgml, onLoadFailedgml);
function onLoadgml(r) {
if (
Hi,
First of all thank you for the prompt suggestion. Worked perfectly and I was
able to include also a style to work with properties defined within GeoJSON
file:
*
specimens = new OpenLayers.Layer.GML("specimens", "geojson.php", {format:
OpenLayers.Format.GeoJSON, projection: new
OpenLayers.Proje
On Sat, Jun 28, 2008 at 04:39:19PM +0200, Adorian Ardelean wrote:
> Hi,
>
> I am trying to load a GeoJSON file in a layer on top of a google map
> (OpenLayers 2.6).
>
> I used for now:
> var colfeatures = new OpenLayers.Layer.GML("specimens", "geojson.php",
> {format: OpenLayers.Format.GeoJSON});
Hi,
I am trying to load a GeoJSON file in a layer on top of a google map
(OpenLayers 2.6).
I used for now:
var colfeatures = new OpenLayers.Layer.GML("specimens", "geojson.php",
{format: OpenLayers.Format.GeoJSON});
map.addLayer(colfeatures);
Entities show up on the map somewhere close to 0,0. F
The GeoJSON Authors are proud to announce the finalization of the
GeoJSON 1.0 Specification.
Representing more than a year's worth of community discussion and
development, the GeoJSON specification describes an easy to use,
extensible format for transferring geographic data over the web. With
supp
GIS <[EMAIL PROTECTED]>
Cc: users@openlayers.org
Onderwerp: Re: [OpenLayers-Users] GeoJSON: members versus features
Datum: 19/10/07 11:43
> Er, I'm pretty sure GeoServer is wrong, we just this week got around to
> updating to the latest geojson spec, I think it's in svn, but not
Er, I'm pretty sure GeoServer is wrong, we just this week got around to
updating to the latest geojson spec, I think it's in svn, but not
released yet. OpenLayers has definitely been ahead of us on spec
implementation.
Bart van den Eijnden (OSGIS) wrote:
Hi list,
when trying the Geoserver G
Hi list,
when trying the Geoserver GeoJSON output against OpenLayers it does not work
out of the box.
Geoserver outputs
{"type":"FeatureCollection","members":[{
whereas OpenLayers expects:
{"type":"FeatureCollection","features":[{
Looking at the last GeoJSON spec Geoserver seems to be in the
Hi
Is anyone aware of existing php code capable of generating geojson?
I've google'd around but haven't found anything useful...
Thanks,
--
Eric
___
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
On Wed, Jun 06, 2007 at 01:33:10PM -0600, Tim Schaub wrote:
> Stephen Woodbridge wrote:
> > Isn't Tim or someone else working on GeoJSON to give an alternative to
> > WFS that does not have the XML parsing and overhead? I would think that
> > this might be a good alternative. If this is really ha
Stephen Woodbridge wrote:
> Isn't Tim or someone else working on GeoJSON to give an alternative to
> WFS that does not have the XML parsing and overhead? I would think that
> this might be a good alternative. If this is really happening, then we
> might want to ping the mapserver list about supp
57 matches
Mail list logo