I've been working on something like 'display georeferenced point', and I did
like that:
- associate the X/Y coordinates with a geometry in the database (using
PostGIS extension to a PostgreSQL database;
- import the database in an istance of GeoServer (which can reproject your
points in all the
Hence this.LIMIT and this.GLOBE_LON need to be set in accordance to the map
projection.
This case was for the Google Mercator projection, for WGS84 they should be
e.g. 180 and 360 of course.
Bye
Piero
--
View this message in context:
Thank you David,
anyway in these days I've been writing a customized RegularPolygon Handler
so to draw polygons across/beyond the IDL.
It may be useful for somebody, waiting for the OL developers to implement a
better way to go.
If you will want to use it and have questions, you can contact me!
Well I'm doing like Paul suggested, without renaming the function:
OpenLayers.Layer.prototype.getLonLatFromViewPortPx = function (viewPortPx) {
alert('Overwritten!');
};
No way.
But if it is the correct way, I'll manage somehow.
Thank you guys!
Piero
--
View this message in context:
I'm seeing that functions are not overwritten if the function is not directly
on a certain OL class, but on an inherited class.
I mean, if I overwrite a function in OpenLayers.Layer, it's not seen by
OpenLayers.Layer.Google for example.
Any clues?
Piero
--
View this message in context:
Thank you David,
ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the
default behaviour?
Moreover, I was trying to see the effect of maxExtent property of the map (I
think I have to set it wider to just 1 globe, so to go beyond the IDL), but
nothing changes, even for very
http://onearth.jpl.nasa.gov/ http://onearth.jpl.nasa.gov/
returns '403 FORBIDDEN' now, guess it's no more available, or need a kind of
subscription.
Do you know an other good satellite worldwide WMS?
Piero
--
View this message in context:
Thank you David,
ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the
default behaviour?
Moreover, I was trying to see the effect of maxExtent property of the map (I
think I have to set it wider to just 1 globe, so to go beyond the IDL), but
nothing changes, even for very
http://onearth.jpl.nasa.gov/
returns '403 FORBIDDEN' now, guess it's no more available, or need a kind of
subscription.
Do you know an other good satellite worldwide WMS?
Piero
--
View this message in context:
Thank you David,
ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the
default behaviour?
Moreover, I was trying to see the effect of maxExtent property of the map (I
think I have to set it wider to just 1 globe, so to go beyond the IDL), but
nothing changes, even for very
Thank you David,
ok so: isn't it the behaviour of a layer with wrapDateLine = false, i.e. the
default behaviour?
Moreover, I was trying to see the effect of maxExtent property of the map (I
think I have to set it wider to just 1 globe, so to go beyond the IDL), but
nothing changes, even for very
Hi, I'm not bringing answers. :)
I can't see the OpenLayers.Layer.OSM class in the API reference, nor it gets
recognized whether I implement it.
Guess the last stable OL version 2.9.1 is not supporting this class yet...?
Piero
--
View this message in context:
I think you're on the right way.
Maybe you now have to create a rule on the 'rules' logical filter you
created, then add it to the style of the feature layer.
Think you should read here:
Hi Paul,
is there a specific place where to put the overwritten prototype?
Because I'm trying to, but the default method is still called.
Thanks.
Piero
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/overwriting-functions-tp1825571p5345898.html
Sent from the OpenLayers
Now, it does.
http://openlayers.org/blog/2010/07/10/google-maps-v3-for-openlayers/
http://openlayers.org/blog/2010/07/10/google-maps-v3-for-openlayers/
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/google-map-v3-tp3314597p5341512.html
Sent from the OpenLayers Users
Hi all,
I'm drawing polygon over a Google base layer.
Even though I set wrapDateLine to true in the Google base layer, the Vector
layer AND the temporary layer created by the RegularPolygon handler, still
when I draw a polygon I cannot cross the IDL.
Any idea guys?
Thank you,
Piero
--
View
Well, regarding the mouse 'clicks' you should take a look at the source of
this example:
http://openlayers.org/dev/examples/click-handler.html
It's something about defining a class OpenLayers.Control.Click inheriting
from OpenLayers.Control, then defining the click Handlers.
Whether you'd like
Hi Koveras, have you tried:
var myFeatures = new OpenLayers.Layer.Vector(myVectors, {
styleMap: myStyleMap,
strategies: [myStrategy],
protocol: etc.
}
Then:
var myStyleMap = new OpenLayers.StyleMap({
You can get them as raster via WMS (if you have a web map service...), or as
vector features via OpenLayers.Layer.Vector or OpenLayers.Layer.WFS.
I used to get the PNG raster of my shapefile like this (I have GeoServer as
WMS):
var myShapeFile = new OpenLayers.Layer.WMS('Name',
I can see
(http://www.skylinesoft.com/SkylineGlobe/Corporate/Products/TerraGateSFSServices.aspx)
that TerraGate SFS Manager provides WFS/WMS services, so it's just a matter
of getting the WFS URL (or WMS URL), and the name of the shapefile as it is
stored in TerraGate.
If you want to retrieve
Hi all,
I've been reading about different ways on how to override an existing
method.
That are, e.g.:
* OpenLayer.Control.myControl = OpenLayers.Class.create();
* OpenLayers.Control.myControl.prototype = OpenLayers.Class.inherit(
OpenLayers.Control.Navigation, {
*
* defaultDblClick: function
Hi Paul, what did you mean with that the fourth paramter ... ?
I set the transitionEffect to a Google base layer without success, no smooth
zoom/pan yet.
var gmap = new OpenLayers.Layer.Google(
Google Streets, {
sphericalMercator:
It seems it's not an OL feature for Google layers.
http://osgeo-org.1803224.n2.nabble.com/Zoom-effect-like-google-map-possible-td3898241.html#a3898393
OL developers: do you know if it will be an available feature for Google
Layers also, some day?
Thank you anyway.
Piero
--
View this message in
Hi Ian,
I am trying to apply your method.
I think I misunderstood something about it because in the end I get a
OpenLayers.Control.AM_Navigation is not a constructor, as I create the
map.
I'm linked to the online OL library.
I have anyway a copy of it in my file system in ./OpenLayers dir: I
Sorry, I made a mistake in the javascript include.
It works.
Piero
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/disable-double-click-tp1824832p5316506.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Hi all,
I was trying to personalize the behaviout of my DrawFeature control, but I
can't find the function defining the 'click' trigger in the RegularPolygon
handler.
I tried to define separately an OpenLayers.Control.Click
(http://openlayers.org/dev/examples/click.html) but it's not working
I guess that whether you create your own styleMap, the values that you don't
explicitly set are then set to their default.
I think it's a standard way of working, but maybe I didn't get 100% your
intentions...
Piero
--
View this message in context:
Any clues about this?
I'm trying with:
myLayer = new OpenLayers.Layer.WMS('myLabel'
WMSURL,
{layers: myMap.geotiff,
transparent: 'true',
Hi Tim,
ok so you can get the HTTP WMS request URL of a certain layer with that:
var request = layer.getURL(map.getExtent());
where you input the BBOX.
But whether I want to test which was the actual BBOX I requested when I did
the HTTP request?
How do I get the HTTP WMS GetMap request I did
Ok Ian, right. (Thanks)
So you mean that you would download also data outside the viewport in
certain cases?
But, especially if the BBOX is small, this wouldn't be a huge problem.
Or am I missing something?
--
View this message in context:
Good point Bart,
but I'd like to select a small portion of the map instead.
Putting a ratio1 the layer would be reduced indeed, but centered with
respect to the viewport.
I'd rather specify where exactly to extract the data.
--
View this message in context:
Uhm... yes, I can see that you can specify the bounds of an Image layer.
But I don't have an URL of the raster (I'm trying to catch it without
success), I can retrieve it only via WMS.
--
View this message in context:
Actually with the OpenLayers.Layer.Image you download the WHOLE image then
you decide where to put it...
I'd like to exploit the WMS BBOX ability to extract portions of rasters...
--
View this message in context:
Hi Sunny,
if you want to do this I think it's better if you create a feature layer via
WFS, because a WMS layer is a raster.
Try with something like:
myFeaturesLayer = new OpenLayers.Layer.Vector(name, {
styleMap: myStyle,
1) WFS strategies:
http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Strategy-js.html
http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Strategy-js.html
For example try with: wfsstrategy = new OpenLayers.Strategy.BBOX();
2) the
First I think you'd better try to test your server with some explicit HTTP
WFS request (spec:
http://portal.opengeospatial.org/modules/admin/license_agreement.php?suppressHeaders=0access_license_id=3target=http://portal.opengeospatial.org/files/index.php?artifact_id=8339
I first have to say that my web-page doen't work on IE8: I can see that data
is downloaded but no map is displayed.
Anyway I tried again but including this new version of OL, and IE8 told me:
'null' is null or not an object
(in OpenLayers.js, line 289, char 1322)
(with Firefox and Chrome and
I don't know wether the OpenLayers.Layer.WFS actually allows for styleMaps,
but I'm sure OpenLayers.Layer.Vector does: try creating a feature-layer with
this latter method.
Ex.
myWfsLayer = new OpenLayers.Layer.Vector(layerName, {
styleMap: myStyle,
The page is not working on IE8 with OL 2.9, neither is working with OL. 2.8.
But the behaviour is different:
- with OL 2.8 no error is declared by IE8 , I can see on the bottom bar of
the browser that something is being downloaded but the page remains totally
white;
- with OL 2.9, if I click
(just a breaking news: I removed my CSS style description on the main page
and the maps appear with IE8 finally, with OL 2.8. With OL 2.9 instead the
same 'null' error is showed!)
Piero
--
View this message in context:
Hi guys,
I'm just asking for an explanation of the set-up of a proxy with
Geoserver/OpenLayers stack.
I installed the user friendly Geoserver Proxy Extension, then I set the
allowed hosts and MIMEtypes.
Reading this thread I learned that I have to specify the proxy in the
script:
(Additionally I would say, Everything works fine... in Firefox, Safari,
Chrome and Opera (...). Does it sound familiar to you? )
Piero
--
View this message in context:
http://n2.nabble.com/GeoServer-Proxy-Extension-OpenLayers-tp3998936p4817134.html
Sent from the OpenLayers Users mailing list
That's it.
Piero
--
View this message in context:
http://n2.nabble.com/Uncaught-Exception-when-I-m-not-on-localhost-tp4802761p4817171.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
___
Users mailing list
Users@openlayers.org
Hi people,
after working on a webpage which embeds OpenLayers maps, I said to my
collegues: Come on, try it!.
It doesn't work.
On Firefox, this is the Firebug message:
uncaught exception: [Exception... Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]
This is the line 1102 in OpenLayers.js:
OpenLayers.Ajax.Responders.dispatch('onCreate',this,response);this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);if(this.options.asynchronous){window.setTimeout(OpenLayers.Function.bind(this.respondToReadyState,this,1),10);}
I guess it's because I didn't set up a proxy.
Due to security restrictions in Javascript, it is not possible to retrieve
information from remote domains via an XMLHttpRequest.
Classes like WFS and GeoRSS use XMLHTTPRequest to get their data. If they
are querying a remote server (anything other
Hi,
I insert myself in the topic for a little question: I can't understand how
to read the content of the HTTP response which contains the WMS feature
info.
Is it a field in the variable controlInfo or whatelse?
Thank you guys. =)
Piero
--
View this message in context:
I have a similar problem too: I want to retrieve a GeoTiff Map from
Geoserver.
My map projection is EPSG:900913, while the native projection of the GeoTiff
map is EPSG:32633.
If I make a direct HTTP request, my browser shows the reprojected GeoTiff
map,
(Just a note: I'm trying to add that WMS layer in a map with the same
EPSG:32633 projection, but still no GeoTiff is returned. There is simply
some kind of error in the new OpenLayers.Layer.WMS( ), independently of the
reprojection issue)
--
View this message in context:
After hours of pure pleasure I found a correct syntax for the Geotiff to be
visualized:
var pmmap = new OpenLayers.Layer.WMS( 'MEEO PM10',
'http://localhost:8080/geoserver/wms',
{layers: 'myWorkspace:myGeoTiff.geo',
Hi everybody,
I'm a beginner to Openlayers and Javascripts. =)
I'm now at the stage Try to open popups over WFS features but I'm having
problems.
My template is the example in the Openlayers Documentation:
http://docs.openlayers.org/library/overlays.html#displaying-popups
but the problem is in
Guess who?
It's me.
Just letting you know I realized it was not just a matter of that '/' in the
feaureNS URI: WFS features doesn't appear also if I open the HTML page
directly from the filesystem, that is if I open file:///GEOSERVER
DIR/webapps/geoserver/MyExample.html instead of
Oh I just don't want to work directly from the filesystem, I just worked that
way because I used to click on the .html file on the filesystem to see it on
the browser.
My question was just curiosity, and I found that probably it's a matter of a
Geoserver policy which lets you retrieve data only
Hi again, it's still me.
I think I found the solution: I switched to WFS 1.0.0 and this time the HTTP
response from Geoserver showed and Exception saying it could not locate
{http://www.nurc.nato.int/}groundlocation (groundlocation is the
point-feature and that URI is the featureNS...), so I
54 matches
Mail list logo