Hi Kenny,
Would it be sufficient for you to just have a point on the map that gets
styled as a circle with a certain radius? Then it's quite easy: [1].
Regards, Roald
[1] http://pastebin.com/f2a72e1d4
Kenny wrote:
>
> Hi Guys,
>
>
>
> I have been trying for ages and can’t seem to get this work
Hi Guys,
I have been trying for ages and can't seem to get this working,
Does anyone have a simple function for drawing a circle?
I mean I want to pass certain variables via a link and it should simply draw
a circle on the map.
Ie:
Function createCircle(lat,lng,radius,id,descri
shane_china wrote:
> And, I read your code, there is another problem. Could vectors in the same
> layer have different styles?
> I have two or more kinds of point in one layer, I want them to show
> different, could it possible?
>
Yes, have a look at how styling works in OpenLayers:
http://docs.ope
And, I read your code, there is another problem. Could vectors in the same
layer have different styles?
I have two or more kinds of point in one layer, I want them to show
different, could it possible?
--
View this message in context:
http://n2.nabble.com/FW%3A-SelectFeatureControl-invalid-when-
Kris Geusebroek, Thank you very much, you are so kind.:-)
--
View this message in context:
http://n2.nabble.com/FW%3A-SelectFeatureControl-invalid-when-set-style-to-vector--tp2743111p2744986.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Hi Chris,
Having trouble figuring out how to adapt the example from a new vector to
existing layer.
tried this
wfs = new OpenLayers.Layer.Vector("Editable Features", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection("EPSG:27200"),
protocol: new
Arnd,
Okay, I got what the numbers are. I'm good to go for now.
Thanks - Peter
--
View this message in context:
http://n2.nabble.com/OpenLayer-map-drawing-symbols...-are-there-others--tp2742651p2744085.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_
On Thu, Apr 30, 2009 at 09:36:37AM +1200, chris Wild wrote:
> Thanks for speedy reply, much appreciated.
> That example works with a new vector layer, with trunck/2.8-rc1 will I be
> able to edit/add existing features in a geodatabase?
Yes. The "new vector layer" has a strategy and protocol which
Arnd,
Excellent. Thanks for the response. I will play around with this. One
quick question, and this might sound stupid, but in the example:
OpenLayers.Renderer.symbol.lightning = [0,0, 4,2, 6,0, 10,5, 6,3, 4,5, 0,0];
What do the points mean 0,0 and 4,2 and 6,0 etc. What do the numbers
rep
Thanks for speedy reply, much appreciated.
That example works with a new vector layer, with trunck/2.8-rc1 will I be
able to edit/add existing features in a geodatabase?
On Thu, Apr 30, 2009 at 9:28 AM, Christopher Schmidt <
crschm...@metacarta.com> wrote:
> On Thu, Apr 30, 2009 at 08:46:16AM +12
On Thu, Apr 30, 2009 at 08:46:16AM +1200, chris Wild wrote:
> Hi all,
> Can someone please tell me whats missing from my code to get WFS-t to commit
> changes.
> The demo works fine and my example works fine up to saving changes to file
> when an extra line is added.The data is added from postgreSQ
Hi all,
Can someone please tell me whats missing from my code to get WFS-t to commit
changes.
The demo works fine and my example works fine up to saving changes to file
when an extra line is added.The data is added from postgreSQl database with
PostGIS.
var roads = new OpenLayers.Layer
Hi,
You can create your own symbols
http://openlayers.org/dev/examples/graphic-name.html
OpenLayers.Renderer.symbol.lightning = [0,0, 4,2, 6,0, 10,5, 6,3, 4,5, 0,0];
OpenLayers.Renderer.symbol.rectangle = [0,0, 10,0, 10,4, 0,4, 0,0];
Or you use an image as symbol.
Arnd
-Ursprüngliche Nac
Forgot to include the list. Sorry
Cheers Kris
-Original Message-
From: Kris Geusebroek
Sent: Wednesday, April 29, 2009 10:19 PM
To: 'shane_china'
Subject: RE: [OpenLayers-Users] SelectFeatureControl invalid when set
style to vector?
Something like this?;
var wfsLayerStyle = Open
To compute the minimum distance to the line, you can use the formula
described here:
http://local.wasp.uwa.edu.au/~pbourke/geometry/pointline/
At one point, it will compute the point along the line which is closest
to the other point, you can use the haversine formula with these two points.
ne
Here's a C++ function (Should be easy to convert to JavaScript)
/* Taken from Robert Sedgewick, Algorithms in C++ */
/* returns whether, in traveling from the first to the second
to the third point, we turn counterclockwise (+1) or not (-1) */
int ccw( Point p0, Point p1, Point p2 )
{
On Wed, Apr 29, 2009 at 05:16:50PM +0200, Stefan Lischke wrote:
> Hi,
>
> I desperatly try to change the style of a OpenLayers.Feature.Vector that i
> parsed with OpenLayers.Format.GeoJSON. Since i cannot not give the style in
> the Feature Constructor i'm searching for another way to do it.
> Is
Hello,
I am looking at the symbols that can be drawn on the map and have used one
of the OL examples to create symbols via:
var style = createSymbolStyle(SELECTED_SYMBOL_TYPE,
frm.symbol_stroke_color.value,
frm.symbol_fi
Dear All,
Just say I got a pair of lat and long p1 and p2 and I draw a line
based on both the points. So now I want to know if a particular point in the
parallel range of say 50m either on left or right sides of the line. How can
I decide this what is the formula please ?
--
View this
You can also play with the feature style.
You can make a 'hidden' style that turns the opacity down to 0.
Then your slider could change the render intent on certain features.
It really just depends on if your are trying to hide a bunch at once or a few
at a time.
-Original Message-
From:
Hi Nicholas,
I had the same problem some minutes ago and i put my features on different
layers and for every "slider step" i hide/show a corresponding layer. I did
this whith calling layer.setVisibility()
Hth
Stefan
-Ursprüngliche Nachricht-
Von: users-boun...@openlayers.org [mailto:use
I have a slider whose value I would like to link directly to what vector
features appear on my map (i.e., as the user moves the slider, I would like
certain features to appear/disappear).
Is the best way to do this to simply call add/removeFeatures on the layer, or
is there a way for me to only t
Kris Geusebroek wrote:
>
> Hi Shane,
>
> You need to set a select style also, so extend
> Feature.Vector.style['select'] and add that to the layerstyle
>
> Cheers Kris
>
> -Original Message-
> From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org]
> On Behalf Of sha
On Tue, Apr 28, 2009 at 4:56 PM, Sebastian Benthall wrote:
> Hello,
>
> I am conducting research into who is using OpenLayers in projects in:
>
> * higher education
I use it in my course at Penn State (
https://www.e-education.psu.edu/geog585/), the student final projects can
choose any client
Hi,
I desperatly try to change the style of a OpenLayers.Feature.Vector that i
parsed with OpenLayers.Format.GeoJSON. Since i cannot not give the style in
the Feature Constructor i'm searching for another way to do it.
Is it possible to include the style atrributes within the GeoJSON?
I tried to
Bill Thoen wrote:
>
> shane_china wrote:
>> In openlayers,
>> I have a straight line with two endpoints. How could I get a point on the
>> line with given distance to one endpoint? Thank you.
>>
>
> You can find a point anywhere on a line by using a ratio calculation.
> Start with the di
Gregor at HostGIS wrote:
> Chris Adams wrote:
>> How about this?
>> http://code.google.com/apis/maps/documentation/staticmaps/
>
> Hey, nice!
>
> I do see 1 issue with some uses: "640x640 is the largest image size
> allowed" So you may have to figure up, say, 4 references points within
> the imag
Could this have to do something with allOverlays: true which I am using?
I've changed back the sequence of layers (should be up in 5 minutes) so
it's reproduceable in the following example (the GNIS population is the
WFS layer), switch it off and zoom to max extent you'll see the WFS
request for t
We use it in education at ITC ( http:// www.itc.nl) for courses on
GeoWebServices, also in projects (eg.
http://geoserver.itc.nl/melkakunture)...
--
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53
shane_china wrote:
> In openlayers,
> I have a straight line with two endpoints. How could I get a point on the
> line with given distance to one endpoint? Thank you.
>
You can find a point anywhere on a line by using a ratio calculation.
Start with the distance to your point divided by the
The google scales are given in the open layers code, you should be able
to calculate it easily.
Christopher Schmidt wrote:
> On Tue, Apr 28, 2009 at 01:59:05PM -0700, Gregor at HostGIS wrote:
>
>> Chris Adams wrote:
>>
>>> How about this?
>>> http://code.google.com/apis/maps/documentation
It only happens if the WFS layer is the first one in the layers stack, so
map.layers[0]. I'll try and investigate further.
Best regards,
Bart
> Hey Kris,
>
> thanks for your reply. Strangely enough I cannot reproduce it anymore, my
> sandbox was created off trunk 2 days ago.
>
> http://dev.openla
Hey Kris,
thanks for your reply. Strangely enough I cannot reproduce it anymore, my
sandbox was created off trunk 2 days ago.
http://dev.openlayers.org/sandbox/bartvde/owscontext/openlayers/examples/owscontext.html
Best regards,
Bart
> Hi Bart,
>
> I have the same setup but when layer is create
Hi Shane,
You need to set a select style also, so extend
Feature.Vector.style['select'] and add that to the layerstyle
Cheers Kris
-Original Message-
From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org]
On Behalf Of shane_china
Sent: Wednesday, April 29, 2009 2:38 PM
Hi Bart,
I have the same setup but when layer is created with visibility: false
no requests are made until visibility is changed.
Are you sure you use the last trunk version. I believe there has been
some changes to activate protocol later than originally was done.
Cheers Kris
-Original Mess
OpenLayers + Geoserver + Postgresql, a project I'm doing which about city's
transmit resource management based on city map and also something about
AutoCAD Map
--
View this message in context:
http://n2.nabble.com/Who-is-using-OpenLayers-in-higher-education%2C-libraries%2C-and-or-%09conservation
here is the detail code
When I construct vecotr like this: var vector = new
OpenLayers.Feature.Vector(point);
select feature control works well. When the vector was selected, color
changed.
But when I construct vector like this :
var layer_style = OpenLayers.Util.extend({},
OpenLayers.Feature.V
Hi list,
using trunk I see that a vector layer with a BBOX strategy and a WFS
protocol does request data even if it is not visible in the map.
Is this intentional / by design?
Best regards,
Bart
___
Users mailing list
Users@openlayers.org
http://openl
On Wed, Apr 29, 2009 at 11:25:57AM +1000, Roald de Wit wrote:
> Christopher Schmidt wrote:
> >Kris,
> >
> >Thanks for the work on this. Two things:
> > * Since the XMLHttpRequest code is, as I understand it, primarily taken
> > from the XMLHttpRequest project (that you linked); are the changes
>
On Wed, Apr 29, 2009 at 04:11:30AM -0700, shane_china wrote:
>
> I followed instructions here
> http://openlayers.org/dev/examples/vector-features.html
>
> Yes, my style successly applyed. But there is another problem. When I use
> selectFeature control to select these vectors, these vectors don
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
In openlayers,
I have a straight line with two endpoints. How could I get a point on the
line with given distance to one endpoint? Thank you.
--
View this message in context:
http://n2.nabble.com/Get-point-on-line--tp2739966p2739966.html
Sent from the OpenLayers Users mailing list archive at Na
I followed instructions here
http://openlayers.org/dev/examples/vector-features.html
Yes, my style successly applyed. But there is another problem. When I use
selectFeature control to select these vectors, these vectors don't change
color.
How could I do this to show people the selected effect
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
Dear list.
I am using openlayers2.7 and geoserver.
After loading WMS layer, I request WFS as a Post.
function wfsQuery()
{
data = "" +
" " +
" " +
" " +
"" +
"STATE_FIPS"
+
Dear list.
I am using openlayers2.7 and geoserver.
After loading WMS layer, I request WFS with spatial operation.
function wfsQuery()
{
url="
http://localhost:/geoserver/wfs?service=WFS&version=1.0.0&typename=topp:states&request=GetFeature&BBOX=-73.99312376470733,40.76203427979042,-73.9
Thanks all for response..
I've found an alternative solution for that. I authenticate using the
standard way with my security-proxy (without javascript) and then all the
request have the right header (no need to set manually).
Hi Roald,
If I send user and password in the header of the request usua
47 matches
Mail list logo