Hi
Have you tried unselecting the feature - using
selectControl.unselect(feature) - before deleting the feature?
Cheers,
Eric
2009/3/17, Dave Potts :
>
> If I attempt to delete a feature from a layer it seems to leave behind a
> yellow spot at every point where a line join another, ie a vertext
Hi,
Thanks for your reply, what I had for the radius value was ${radius} just like
in the exemple.
I figured out that my problem was not in the radius definition itself but in
the layer definition, first my style definition was at the wrong place then I
had to define the styleMap out of the v
Hi All,
I'm trying to display a load of points (ranging from 5-2000 depending on
user prefs) across New Zealand and many of them end up very close to another
one. So close that you'd have to zoom in well below the level that the
baselayer becomes a blur before being able to tell them apart.
Is this anything to do with this:
http://trac.openlayers.org/ticket/1627
Robert Sanson
>>> Dave Potts 17/03/2009 2:35 p.m. >>>
If I attempt to delete a feature from a layer it seems to leave behind a
yellow spot at every point where a line join another, ie a vertext
Is there anyway of sto
If I attempt to delete a feature from a layer it seems to leave behind a
yellow spot at every point where a line join another, ie a vertext
Is there anyway of stopping this happening?
I am using the onSelect call back to invoke a function that calls
detroyFeatures to actual do the removal
I registered a click event on my map, like so:
map.events.register('click', map, function (e) {
//do some stuff
}
On IE (6 & 7), when I shift-click at a point on the map to zoom in,
the click event fires in addition to the OL shift-click zoom. On
Safari and Firefox, only the zoom occ
Hello,
I'm having problems assigning events to some markers on my map, I have
already registered 'click' and 'dblclick' events with something like this:
marker.events.register('click', marker, mouseClick);
marker.events.register('dblclick', marker, mouseDobleClick);
where mouseClick and mouseDob
Thanks Eric!
I'm not that JS guru I should be Could you please explain a bit more
how this would work?
Thanks,
-Z
--
View this message in context:
http://n2.nabble.com/Passing-parameters-to-ajax-request-callback-method-tp2487503p2488616.html
Sent from the OpenLayers Users mailing list ar
Hi Steve
This is what I do:
include EPSG files specifically as required:
Later, I have code that retrieves the entered coordinates and converts:
var src = new OpenLayers.Projection('EPSG:4326');
var dest = new OpenLayers.Projection('EPSG:2193');
I created a simple html page where the user enter lat/long coordinates and
the program returns the projected coord in EPSG 32198.
That works well, but if I insert the same code in a more complex program
using openlayers, the coordinates are not projected. Here is the code I
put just after map.s
Hi
You would use a JavaScript closure for that. The
OpenLayers.Function.bind can create that closure for you.
Cheers,
Eric
2009/3/16, Zer :
>
> Hi list,
>
> Is there a way to pass a parameter to the callback method that is called in
> an ajax request?
>
> Something like this:
>
> myRequest = Op
Hi list,
Is there a way to pass a parameter to the callback method that is called in
an ajax request?
Something like this:
myRequest = OpenLayers.Request.GET(
{
url :myUrl,
callback :myCallback(myParameter)
});
and
Superb. Thanks to you both. Especially for such quick responses. I'm now able
to switch between layers inside a single MapGuide map.
Thanks again,
Stuart.
--
View this message in context:
http://n2.nabble.com/How-the-OL-MapGuide-layer-class-relates-to-the-MapDefinition-tp2479970p2487362.html
Se
On Mon, Mar 16, 2009 at 10:27:01AM -0400, Christopher Schmidt wrote:
> On Mon, Mar 16, 2009 at 01:11:14PM +0100, Andreas Hocevar wrote:
> >
> > You shouldn't do this manually. Add a HTTP Protocol with a WKT Format
> > to your layer. See
> > http://www.openlayers.org/dev/examples/behavior-fixed-htt
On Mon, Mar 16, 2009 at 01:11:14PM +0100, Andreas Hocevar wrote:
>
> You shouldn't do this manually. Add a HTTP Protocol with a WKT Format
> to your layer. See
> http://www.openlayers.org/dev/examples/behavior-fixed-http-gml.html
> for a similar use case. You just have to replace the Fixed strateg
You should be able to use the "showLayers" / "hideLayers" attributes.
You can obtain the GUID's by inspecting the runtime map layer's object id:
http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/de2/class_mg_layer_126f4d4e55b249ce8a014b8e189b1b2c.html#126f4d4e55b249ce8a014b8e189b1b2c
Regards
I don't see what you had before but this wont work because
pointRadius has to be a number, not a function.
You can use a function to create the number:
//Styles
var clusterStyle = new OpenLayers.Style({
pointRadius: "${radius}",
fillColor: '#ee9900',
fil
$layerCollection = $map->GetLayers();
$layer->GetName()
$layer->GetObjectId()
z
On Mon, Mar 16, 2009 at 11:50 PM, gingerbbm wrote:
>
> Hmm. Can I not use the "showLayers" and "hideLayers" options in the OL
> MapGuide layer constructor? Presumably I could then set up 20 OL MG layers
> pointing t
2009/3/16 Didrik Pinte :
> Hi list,
Hi
> We have an application that is linked to a servlet that generates a
> GeoJSON stream. In some situations, the stream is empty.
>
> Looking a Format/GeoJSON.js, I cannot find the correct way to provide a
> valid GeoJSON stream that containts no features. A
Andreas,
I'll take care of this and the patch during the following days.
Thanks to you for your interests,
Alexandre
Andreas Hocevar wrote:
> Alexandre,
>
> it seems we don't have a CLA from you or Mapgears yet. Is this
> correct? If so, please follow the instructions on
> http://trac.openlaye
Hmm. Can I not use the "showLayers" and "hideLayers" options in the OL
MapGuide layer constructor? Presumably I could then set up 20 OL MG layers
pointing to a single MapDefinition that contains my 20 layers, defining
which to show/hide.
I'm creating a MapGuide runtime map, returning the session
Hi,
On Thu, Mar 12, 2009 at 2:02 PM, Fernando Quadro wrote:
> I can add a style (SLD) in GML layer? If yes, how?
Yes you can. See http://www.openlayers.org/dev/examples/sld.html to
see how that works.
Regards,
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight f
Hi,
On Tue, Mar 10, 2009 at 3:48 AM, George Silva wrote:
> I'm quite a novice OL user. I'm using Geoserver with PostGIS layers, and
> i would like to display them with OL. In the "Demo" session of GeoServer
> admin page i can see my FeatureType and GeoServer correctly renders a
> test page of thi
Hi,
there are several things wrong in your code.
if what you pasted below is your code, then you should get JavaScript
errors because you messed up the braces:
On Tue, Mar 3, 2009 at 5:21 PM, RFeagin
wrote:
>
> I am having problems with getting a clustering strategy to work on my vector
> layer
On Thu, Mar 5, 2009 at 8:29 PM, SebastienLachance
wrote:
>
> I am using OpenLayers to allow users to place a four-points polygon over an
> image layer. Lately, the client want to add a line over the feature like
> this :
>
> http://farm4.static.flickr.com/3555/3330714055_8bd9cfb58e.jpg?v=0
> http:
Alexandre,
it seems we don't have a CLA from you or Mapgears yet. Is this
correct? If so, please follow the instructions on
http://trac.openlayers.org/wiki/HowToContribute
Thanks!
Andreas.
On Wed, Mar 4, 2009 at 2:13 PM, Alexandre Dube wrote:
> We found out what was not working for us. I've pr
Hi Alexandre,
if you can create a ticket with this patch and set it to Review, I'd
be willing to commit this since it does not break any unit tests. It
would be good if you could add a test in your patch to show the
problem.
Thanks!
Andreas.
On Wed, Mar 4, 2009 at 2:13 PM, Alexandre Dube wrote:
On Sun, 2009-03-08 at 23:12 -0700, sylvie fiat wrote:
> Hi,
>
> I have the same problem and it's taking me hours, did you figure out what
> was the problem ?
> I have tried :
> styleMap: new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults(
> { pointRa
Hi list,
We have an application that is linked to a servlet that generates a
GeoJSON stream. In some situations, the stream is empty.
Looking a Format/GeoJSON.js, I cannot find the correct way to provide a
valid GeoJSON stream that containts no features. A FeatureCollection
with no feature raise
You can render vectors outside a map. If you are using ExtJS, or to
see how to do that, you may want to have a look at
http://projects.opengeo.org/styler/browser/trunk/lib/Styler/widgets/FeatureRenderer.js
This code is part of OpenGeo's styler application (see
http://styler.opengeo.org/trunk/).
while trying to run the example vector-format.html following from within my
computer without changing any in code I got the following errors:
OpenLayers.Format.WKT is not a constructor
updateFormats()vector-f...mats.html (line 74)
init()vector-f...mats.html (line 110)
onload(load )7tnQksP2...GPg%3
If you have 20 layers, you will also get 20 http requests, which would
worry me.
You can't point to a single layer inside a map, but you can use server code
to toggle layer visibility, and thus have a single MG layer and control what
layers are visible.
Regards, Kenneth Skovhede, GEOGRAF A/S
32 matches
Mail list logo