Anything useful in apache access and error logs. And mapserver log?
I use this control but I started from this example
http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeatureinfo-control.html
steve
Benjamin Preisig @openlayers.org
Envoyé par : users-boun...@openlayers.org
1
Hard to tell, you said that the getFeatureInfo request in the browser was
returning data. So I guess mapServer is ok.
Explore your Apache Access and Error log
steve
Kiks @openlayers.org
Envoyé par : users-boun...@openlayers.org
02/08/2010 11:27 AM
A
users@openlayers.org
cc
Objet
Re: [Open
I guess these lines follow your code...
map.addControl(info);
info.activate();
If you don't specify any url: parameter does it work?
I created this control following this example and it is working well
Feature Info Example
Steve
Kiks @openlayers.org
Envoyé par : users-boun...@openlayers.org
I would do something like this. Hope this help.
theControl.events.register("getfeatureinfo", this, showInfo);
function showInfo(evt)
{
if( evt.text != "\n" && evt.text != "")
map.addPopup(..);
}
"Manuel Aymerich" @openlayers.org
Envoyé par : users-boun...@openlayers.org
15/
Hi,
These problems were fix after the release of OL 2.8.
So you have the use a recent built of OL
see the response of Andreas on another thread,
please use a current trunk version of OpenLayers, not a patched 2.8
version. You can download a nightly build from
http://trac.openlayers.org/wiki/HowToD
Hi,
I have a problem using an empty base layer with a google layer. They are
defined like this
var googleH = new OpenLayers.Layer.Google( "Google Hybrid", { type:
G_HYBRID_MAP, 'sphericalMercator': true} );
var aucunContexte = new OpenLayers.Layer("AucunContexte",{isBaseLayer:
true});
I have an
solved using clone()
Thanks Alexandre,
Steve
for(i in overlays)
{
var oOriginalLayer = overlays[i];
// add the original layer to the 1st map
map.addLayer(oOriginalLayer);
// create the clone layer, reference it to its origi
This code works if comment " layers.length == 1"
var addLayersToMap = function()
{
var ov_overlays;
for( i in overlays )
{ map.addLayer( overlays[i] );
ov_overlays = overlays[i].clone();
ov_map.addLayer( ov_overlays );
overlays[i].events.register('visibilitychang
Almost doneAmasing how things are easy to do with OL.
I have a wms layers array, "overlays[]"
I use this code to create the layers array of the overview map and to
define the visibilitychanged event.
var addLayersToMap = function()
{
for( i in overlays )//overlays contains my wms layers
{
Thanks Alexandre,
More detailed...
Per example, a user could watch the whole world and the ov-map will be
zoomed on Chicoutimi. Whatever the user do on the main map (panning,
zooming), I want the ov-map to stick on Chicoutimi, because it is so
beautiful ;-)
But if a layer is selected on the tre
Hi,
I'm using openlayers with geoext.
I would like to create a magnifier window. So it is like an overview map
with a fix map center and a fix zoom level, but the main map and this
overview map share the same geoext tree, so the layers are shown/hidden on
both maps.
I think I can do it if I sta
Diego you can use the MousePosition control. Just define the map
displayProjection parameter to epsg:4326
http://dev.openlayers.org/docs/files/OpenLayers/Control/MousePosition-js.html
Steve
Diego Roberto @openlayers.org
Envoyé par : users-boun...@openlayers.org
20/01/2010 05:34 AM
A
Open
In the mapfile, you must define a tolerance and a template for both layer
(Argentina and Uruguay)
TOLERANCE 0
TEMPLATE '../template/query.html'
just add "[oid]" in your query.html for now.
In OL
You are querying every layer with a template. Keep it simple and try first
with one layer
var _wmsCo
Wich mapServer version?
Can you send one layer definition of the mapfile and how you create the Ol
layer for this layer?
Do you register an event for this control, please provide all the code
related to this control.
steve
stela anders @openlayers.org
Envoyé par : users-boun...@openlayers.o
Stela
Did you have a look at openlayers example
http://openlayers.org/dev/examples/
See Feature Info in popup
It will work with a Mapserver WMS.
You got to define an OL control
You also have to make your layer queryable, in your mapfile define a
tolerance and a template.
Steve
stela ande
how to verify this.
I'm using OpenLayers.Control.LoadingPanel example
Please tell me if this is a mapfish issue.
Thanks
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction de la santé environnementale et de la toxicologie
Institut national de santé publi
this layer with Layer.WMS with a simple query the progress bar
disapear.
Is it because Layer.WMS.Post doesn't have a loadend event? I don't know
how to verify this.
I'm using OpenLayers.Control.LoadingPanel example
Please tell me if this is a mapfish issue.
Thanks
Steve
Steve To
Thanks for this alternative Andreas.
I don't know much about sld but I read some threads and it seems to be the
right solution. I'll try to find some goog examples.
It never ends...Always something new to learn
Thanks
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur env
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
Hi,
I would like to add a control that save/open a context. So the user can
quit the application, come back later and open the application in the same
"status" or context.
By context I mean the zoom level, map's center and the layer loaded on the
map.
Any tips or approaches to do that please?
t
Hi,
Yes you can get the correct length setting the geodesic properties of the
measure control to true.
But this measure won't fit with the scaleline.
I might be wrong but I think there is no such geodesic property for the
scaleline.
Steve
"Arnd Wippermann" @openlayers.org
Envoyé par : users
bs"::text,"nouv"::text,asbinary(force_collection(force_2d(geom900913)),'NDR'),id::text
from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in
(%ORDRE%)) and (geom900913 && setSRID(
'BOX3D(-8493071.07981319 5795761.22549582,-8480841.155289
::text,asbinary(force_collection(force_2d(geom900913)),'NDR'),id::text
from ecoles WHERE (semcdc in (%SEMCDC%) and rss in (%RSS%) and ordre in
(%ORDRE%)) and (geom900913 && setSRID(
'BOX3D(-8493071.07981319 5795761.22549582,-8480841.15528974
5807991.15001926)'::BOX3D,900913
Thanks Robert,
Interesting.
If someone is using a client such as gaia or qgis, can he access the
layers only by entering "http://10.64.20.120/cgi-bin/gsswms.exe?"; as the
URL
Or if we do a getMap request, what happen?
I tried, but maybe it is not a public site
Steve
Steve Tout
Thanks all for your help,
I'll have in a near future to implement a fully secured private site since
I'm gonna have to publish VERY sensible data via WMS. I can tell that this
issue scares the IT group. Story to follow...
But for now, obscurity is sufficient.
I'm a bit in obscurity myself regard
Hi,
I don't know where I should post this thread since it implies mapServer
and OpenLayers.
I defined a WMS Raster layer that I use in my OpenLayers/GeoExt apps,
I would like to control the access to this WMS, so people can use it via
my application, but can not "call" the WMS to use it in their
Tim,
You might need to provide the proj4js definitions for your map projection
2398 to use geodesic: true
I already use it to transform coordinates, perhaps it is also required by
geodesic option.
If you want to try it, install the library and include theses scripts
you'll probably need to
I would try this
- Remove geodesic:true from the map option
- set the measure option like this
var measureOptions = {
persist :true,
geodesic: true,
handlerOptions : {
style :"default"
}
}
hope this helps
steve
Tim Balschmiter
24/09/2009 09:06 AM
A
steve.tout...@inspq.qc.ca
cc
U
Hi,
Try to add geodesic: true as an option.
Is EPSG:2398, the projection defined in the option of the map object?
Steve
Tim Balschmiter @openlayers.org
Envoyé par : users-boun...@openlayers.org
24/09/2009 02:17 AM
A
Users@openlayers.org
cc
Objet
[OpenLayers-Users] measure with 2398
firebug found OpenLayers.ProxyHost into example.js
That is a script from mapfish used for the print widget example.
Just removed it and now it is working with or without specifying the url
in the parameters list of WMSGetFeatureInfo.
Thanks for your help,
Steve
Steve Toutant, M. Sc.
Analyste
That works!
Not sure to understand why though?
thanks
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
Tél.: (418
Hi,
I'm using WMSGetFeatureInfo to query a specific layer. The information is
retrieved from the same server/domain where the application and mapserver
are installed.
The answer I get is "The requested URL /cgi-bin/proxy.cgi was not found on
this server."
I read this http://faq.openlayers.org/pr
Yes geom900913 is correctly referenced as well as the 2 other geometries.
geom900913 is not considered as an attribute though, but the others are.
The behavior is fine I think.
I was using this key in the first place
"gml_include_items" "ad,quintmat,quintsoc" which returns this.The problem
still
27;gml_featureid' 'gid'
END
DUMP TRUE
TOLERANCE 0
TEMPLATE '../template/query_indiceDef.html'
HEADER '../template/query_header.html'
FOOTER '../template/query_footer.html'
INCLUDE "/ms4w/inspq/map/Class_IndiceDefavorisation.map"
t/xml');},function(){var req=new
XMLHttpRequest();req.open("GET","data:"+"text/xml"+";charset=utf-8,"+encodeURIComponent(text),false);if(req.overrideMimeType){req.overrideMimeType("text/xml");}
I click on Continue button and then the
etfeatureinfo", this, showInfo);
map.addControl(infoControls[i]);
infoControls[i].activate();
}
function showInfo(evt)
{
if (evt.features && evt.features.length)
{
highlightLayer.destroyFeatures();
highlightLayer.addFe
rs.Layer.WMS
Also, you can try putting this line
map.addLayers([wms, studiwohn]);
after the var info statement. For some reason it worked for me but I have
no explanation. I'd like to know why.
Also, do you use mapserver? do you have a template key define in your
layers?
Steve
Steve T
rol before adding the
layer to the map. Because that means I must reorganise my code.
thanks
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
lt, ...
>From another thread I read that using this in the params of the layer
might help: ,styles: ['','','','']
But I stil get the error message above.
Still can't point out where the problem is.
Regards
Steve
Steve Toutant, M. Sc.
Analyste en géo
Hello,
When I define the Control.WMSGetFeatureInfo if I don't specify the
"layers:" properties, every visible layers with a Template in the mapfile
are queried and I get the results. That is as expected. My problem is when
I want to specify one layer to query. The request is not launched (I see
I think the only solution is to get this KML file on your local server
then. You can do that with a server side script such PHP
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de
results are good.
But I don't understand why I should specify geodesic: true if my map is
projected?
For the scaleLine I can't figure out why the scale is not good.
Ideas or extra info on these controls would be appreciated.
thanks,
Steve
Steve Toutant, M. Sc.
Analyste en géomatiq
Setting geodesic: true fixed it.
I misunderstood this property.
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
Tél
No, I need planar distance since my map is in Mercator projection.
I provided The coordinates of point 1 and point 2 in lat/long just for
test purpose.
Sorry for the confusion.
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques
r
action = new GeoExt.Action({
control: mesureControl,
map: map,
toggleGroup: "map",
iconCls: 'measure',
tooltip: 'Mesure linéaire'
});
toolbar.push(action);
Thanks for your help,
Steve
Steve Toutant, M. Sc.
Analyste en géomat
Hi,
Take a look at
http://www.gdal.org/ogr/drv_kml.html
I'm not sure if you can translate directly from CSV to KML, but you could
translate from csv- shapefile-kml
You can call ogr2ogr from php if you need to translate at runtime.
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Se
ml
Also there is another link for v2.8. The DIV properties is not there
http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Control-js.html
In these 3 links ../Control-js.html above, the properties list is not the
same.
I guess only one link should be used, is /apido
navControl.activate();
It seems to work even if I don,t use it.
And that works without .activate
map.addControl(MousePosition);
Thanks for clarifying this
Regards,
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occ
oom = 2; //Means zoom = 7 since minzoomlevel = 5
var lonCenter = -73.696289;
var latCenter = 47.606163;
point = new OpenLayers.Geometry.Point(lonCenter, latCenter);
OpenLayers.Projection.transform(point, map.displayProjection,
map.getProjectionObject());
map.setCenter(new OpenLayers.LonLat(po
Hi,
You can use raiseLayer to make sure the markers are on top
http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.raiseLayer
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
the good place to modify these
settings?
Regards
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
Tél.: (418) 650
Hi,
I would like to display at the bottom of the map the info on the copyright
or the owner of a layer. The info will appear only when the layer is
rendered.
The layer is a WMS built with mapserver.
Is it possible? How should I accomplish this?
Thanks
Steve
Steve Toutant, M. Sc.
Analyste en
"select": {
fillColor: "#8aeeef",
strokeColor: "#32a8a9"
}
})
},
{
extractAttributes:true,
visibility: false
});//fin du new vector
};
Steve Toutant, M. Sc.
Analyste
The xml file is 4.5mo
Thank you very much for your help, I'll follow your advices.
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Q
format: new OpenLayers.Format.GML()
}),
styleMap:new OpenLayers.StyleMap({
"default": WFSstyle,
"select": {
fillColor: "#8aeeef",
strokeColor: "#32a8a9"
}
In the console TAB there is a GET call to my WFS,
http://geo.inspq.rtss.qc.ca/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante2.map&typename=HLM_shp_wfs2&srsName=EPSG%3A900913&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A900913&BBOX=-13586195.339050002,2515633.1906250007,-1219295.66
Thanks Maxime,
Of course it was a part of the problem in openlayers. I fixed that but it
still doesn't load in OL, gvSig and gaia
My guess is it is a permission issue. Any suggestions on some tests I
could do or maybe there is a log I can create?
Steve
Steve Toutant, M. Sc.
Analys
lass
END
LAYER
NAME 'HLM_shp_wfs2'
TYPE POINT
DATA 'hlm/hlm_omh'
DUMP true
STATUS ON
METADATA
'wfs_title' 'HLM en wfs'
'gml_featureid' 'IDBATIMENT'
'gml_include_items' 'all
and see this
http://openlayers.org/pipermail/users/2009-April/011158.html
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
thing else?
Thanks
Steve
Steve Toutant, M. Sc.
Analyste en géomatique
Secteur environnement
Direction des risques biologiques, environnementaux et occupationnels
Institut national de santé publique du Québec
945, avenue Wolfe
Québec, Qc G1V 5B3
Tél.: (418) 650-5115 #5281
Fax.: (418) 654-3144
steve.
Perhaps I misunderstood what you are trying to do but Could you just
create one markerLayer and add all your markers in it?
wrap map @openlayers.org
Envoyé par : users-boun...@openlayers.org
18/03/2009 10:48 AM
A
users@openlayers.org
cc
Objet
[OpenLayers-Users] RE how to remove selected ma
Try
markers.removeMarker(markerName);
steve
wrap map @openlayers.org
Envoyé par : users-boun...@openlayers.org
18/03/2009 10:05 AM
A
users@openlayers.org
cc
Objet
[OpenLayers-Users] how to remove selected marker
hey all,
function CreateNewMarker() {
markerName = document.getElem
good point!
Here is what doesn't work
var wms = new OpenLayers.Layer.TileCache( label,
"http://10.2.192.128/tilecache/dataWms";, theme, {REPROJECT:
'false',format:"image/gif",
transparent: "true",
maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336,
-168667.136, 371610.912)
Hi,
I need to use tilecache as a non base layer.
This work well
var wms = new OpenLayers.Layer.WMS( label,
'http://10.2.192.128/tilecache/tilecache.cgi?',
{
LAYERS: theme,
REPROJECT: 'false' ,
transparent: "true"
},
{
maxExtent: new OpenLayers.Bounds(-338000.384, -21722.336, -168667.136
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
65 matches
Mail list logo