Hi!
I am trying to do as following:
var poligono = new OpenLayers.Layer.WFS(
Elementi poligonali,
/geoserver/wfs,
{typename: 'topp:poligono'},
{
typename: 'poligono',
featureNS:
Your code can never work, OpenLayers.Util.getParameters() returns an Object
not a string.
Write you poligona.params.Filter to the Firebug console
(console.log(poligona.params.Filter)) and check if it is really correct.
Also you have a ; before the + for string concatenation which cannot work
as
[EMAIL PROTECTED] ha scritto:
Your code can never work, OpenLayers.Util.getParameters() returns an Object
not a string.
Yes, u right!
The problem is that even if I write a value in the literal i am not
able to display my data.
Thanks again!
--
Ing. Fabio D'Ovidio
INOVA Open
OK, I think I start to understad.
I modify my code like this (with spherical mercatro proyection in
googlelayer, were I think it's ok)
And change the code of EPSG code for my layer.
Now my code it's:
script type=text/javascript
// make map available for easy debugging
Hello everyone
I have a problem to change the icon and the size of the marker when I use
OpenLayers.Layer.GeoRSS, any size and any icon cheque with OpenLayers.Icon
is not taken.
Show always the marker by default.
This is the code.
yelp = new OpenLayers.Icon(blu.png, new OpenLayers.Size(20,29));
I've been looking around through the forums and other places, and I am not
sure this is even possible, but I thought I'd see if anyone has found a way
to do this.
I was hoping to find a way to catch the Google 'No imagery is available at
this zoom level' message, and then tell my open layers map
What you receive is a valid image with the content No imagery blabla.
In your client side you cannot know that isn't a 'valid' one.
On Tue, Jul 1, 2008 at 4:29 PM, czieler [EMAIL PROTECTED] wrote:
I've been looking around through the forums and other places, and I am not
sure this is even
Right.. I know that.. I was just hoping there might be an error thrown
somewhere as well, that I could check for. I didn't think there was, but
thought I'd see if anyone had found a way to do so.
Christian López Espínola wrote:
What you receive is a valid image with the content No imagery
You can add the feature to the persistent layer informed in the
constructor.
In measureGeometry method, add these lines:
*var* feature = *new* OpenLayers.Feature.Vector(geometry);
* this*.layer.addFeatures([feature]);
Tell me if it doesn't work, I could provide a working example.
Regards-
I'm using a javascript object to keep track of the current WMS layer a user
is querying against:
myObj.query.layer = 'volcanoes';
and am using eval to convert this string back to the layer variable name for
a getFeatureInfo request:
var queryLyr = eval(window.myObj.query.layer);
but know that
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
Hi folks: I'm converting an older application that uses table layouts to OL (v.
2.6) and have everything working nicely except for an issue with a vector
layer. I've setup a simple measure function using the draw feature control. In
IE however the feature is offset in the x direction from the
Fabio D'Ovidio,
I used this codes to refresh my georss layer.I don't know whether it will be
helpful for you or not.
//categoryMapMarkers = new OpenLayers.Layer.GeoRSSM2Ex( '??', loca,
{'icon':schoolIcon});
categoryMapMarkers.clearFeatures();
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
Hey-
Simone Gadenz wrote:
Hi all,
probably you guys knew that Firefox has a limit of 4k on XML node
content. I have just realised because some of the lines I had loaded
from a GeoRSS file were cut after 4096 chars.
I have been said to use the line[0].textContent instead of
Hey-
Zer wrote:
Hi!
Is there anyone that knows if it is possible to convert or just show
vector polygons (from GML) as points instead of vectors? I would like to
present the center coordinate aswell as the polygon.
We've done some work to allow rendering non-point geometries with a
single
Hey-
Ian wrote:
I'm using a javascript object to keep track of the current WMS layer a
user is querying against:
myObj.query.layer = 'volcanoes';
and am using eval to convert this string back to the layer variable name
for a getFeatureInfo request:
var queryLyr =
17 matches
Mail list logo