[OpenLayers-Users] mouseposition over reproject with IExplorer

2009-03-19 Thread toni hernández
hi all, I've been trying to use mouseposition control on a map with a displayprojection different (utm 23031) than the map projection (4326) It works fine with FF (show mouse position on 23031) but it's not working with IExplorer. IExplorer show the mouse position with 4326 I read that in

[OpenLayers-Users] Problems with maxExtent and blank images (Mapserver and Mapnik)

2009-03-19 Thread tschobber tschöbbi
Hi, I have two layers in Openlayers - one is for rendering Mapnik maps and the other for rendering with Mapserver. Both have the same data from a postgis database and I declare maxExtent (in map options) with the following values: var mapOptions = {maxExtent: new

Re: [OpenLayers-Users] storing mouse click during vector drawing

2009-03-19 Thread Alexandre Dube
Hi, If all that matters to you is to have each of your points after drawing a feature, then you could register events to your DrawFeatures controls like this : controls['point'].events.register(featureadded,'' , featureAdded); function featureAdded(evt){ var feature = evt.feature;

[OpenLayers-Users] storing mouse click during vector drawing

2009-03-19 Thread wrap map
how can i get the coordinates value on drawing of polygon at each mouse click , actually i want to store each coordinates i clicked during vector drawing. currently i use this for vector drawing controls but at time of drawing i cannot get the coordinates at each point i clicked during drawing.

Re: [OpenLayers-Users] Openlayers and Mapnik - Problems generating maps in OL with XML (Mapnik)

2009-03-19 Thread tschobber tschöbbi
Thanks! I tried it already in such manner but I've done anything wrong. Now its working - but you have to add array brackets around the styles. I have another question: How am I able to create an own maxExtent attribute for each layer with one map object? Original-Nachricht

[OpenLayers-Users] Layers are not being drawn - proxy issue?

2009-03-19 Thread J. Brian Adams
I am completely new to openlayers (Started Monday!). I have been working through some examples but with my own data. I have a map with a base layer from openstreetmaps and with a gml layer that I created with var munis = new OpenLayers.Layer.GML(Municipalities,

Re: [OpenLayers-Users] Layers are not being drawn - proxy issue?

2009-03-19 Thread Christopher Schmidt
On Thu, Mar 19, 2009 at 09:00:56AM -0400, J. Brian Adams wrote: I am completely new to openlayers (Started Monday!). I have been working through some examples but with my own data. I have a map with a base layer from openstreetmaps and with a gml layer that I created with

Re: [OpenLayers-Users] Layers are not being drawn - proxy issue?

2009-03-19 Thread Christopher Schmidt
On Thu, Mar 19, 2009 at 11:22:09AM -0400, Christopher Schmidt wrote: On Thu, Mar 19, 2009 at 09:00:56AM -0400, J. Brian Adams wrote: I am completely new to openlayers (Started Monday!). I have been working through some examples but with my own data. I have a map with a base layer from

Re: [OpenLayers-Users] Cluster Strategy WKT Vectors - not clustering

2009-03-19 Thread RFeagin
Thanks for your help. I created my own custom format as you suggested and got it working. Unfortunatly the clustering is too slow to make this a usable option for me. I think I'm going to have to go with a dynamic wms layer. -- View this message in context:

[OpenLayers-Users] Measure Control - get distance on mouse move

2009-03-19 Thread RFeagin
Has anyone made the measure control get the distance on mouse move? After the first point has been added it would be nice to see a 'real-time' distance using the current mouse position as the final point. Just thought I'd check to see if someone had already done it and was willing to share.

[OpenLayers-Users] RE : Measure Control - ge t distance on mouse move

2009-03-19 Thread James Leveille
Try this : var oMeasrLinearCtrlOptions = { title: 'bla bla bla', displayUnits: 'km', eventListeners:

[OpenLayers-Users] distances in spherical mercator

2009-03-19 Thread Alessio Di Lorenzo
Hi all, I'm using the measurement tool in an application that uses google maps as base. My problem is that the measurement tool calculate the planar distance (instead geodesic)... I tried to use the Util.distVincenty and it works (very good) only if my map projection is 4326. Snippet:

Re: [OpenLayers-Users] Layers are not being drawn - proxy issue?

2009-03-19 Thread J. Brian Adams
Yes - I have just realized this. Sorry. It appears that the gml file is being drawn, but instead of at the location it should (south central Pennsylvania in the US) it is showing in Central Africa. I created the gml file as an export of a GRASS vector file that I have been using. I

Re: [OpenLayers-Users] Problems with maxExtent and blank images (Mapserver and Mapnik)

2009-03-19 Thread Jay Douillard
Martin, Take a look at the request url that openlayers is sending to mapserver(using firebug). I've had some issues with floating point rounding errors and missing tiles. Try converting your bounds to integers and see if that fixes the problem. jay - Original Message - From:

Re: [OpenLayers-Users] RE : Measure Control - get distance on mouse move

2009-03-19 Thread RFeagin
Unless I'm missing something, that looks exactly like what I'm already doing and gets me an updated distance each time the user clicks to add another point to the polyline. What I'm looking for is to get the distance to the current mouse location (without having to click to add the current

Re: [OpenLayers-Users] distances in spherical mercator

2009-03-19 Thread Bill Thoen
Alessio, I think you can just use the planar distances because the google SRS is a projected coordinate system and the coordinate units are meters.. Whether it's very accurate over long distances I don't know. I doubt it, but t might not be too far off depending on your needs. Google

Re: [OpenLayers-Users] WMSCapabilities

2009-03-19 Thread Bart van den Eijnden (OSGIS)
Hi, you need to override the OGC mimetype in the proxy.cgi script to text/xml for it to work in IE, see: http://openlayers.org/pipermail/dev/2007-December/002039.html Best regards, Bart James Leveille wrote: This time, with an appropriate title (sorry) ... Hi all, I've been struggling

[OpenLayers-Users] WGS84 data on Google layer

2009-03-19 Thread Craig Stanton
Hi All, I've sorted the clustering strategy that Ivan mentioned a few days ago but have come upon another problem I'd appreciate some advice on. My data is stored as WGS84 lat/longs and I want to use Google Terrain as the base layer, but the points drift off their locations as they get

Re: [OpenLayers-Users] WGS84 data on Google layer

2009-03-19 Thread Christopher Schmidt
On Fri, Mar 20, 2009 at 08:38:38AM +1300, Craig Stanton wrote: Hi All, I've sorted the clustering strategy that Ivan mentioned a few days ago but have come upon another problem I'd appreciate some advice on. My data is stored as WGS84 lat/longs and I want to use Google Terrain as the

[OpenLayers-Users] OpenLayers passing query bounds in wrong projection

2009-03-19 Thread SeeJay
Ok, I've been banging my head against this for a couple of days. I'm sure I'm just missing something simple. My map is in epsg:900913, the WFS request is passed to mapserver which hits a postGIS database containing a grand total of 2 point features. Code snippets follow:

Re: [OpenLayers-Users] WGS84 data on Google layer

2009-03-19 Thread Craig Stanton
The bit that I am missing is the exact projection specification I need to get WGS84 data onto a Google layer. I think these are all the relevant bits of code * var map = new OpenLayers.Map('map'); var gphy = new OpenLayers.Layer.Google( Google Physical,

Re: [OpenLayers-Users] Spatial Reference

2009-03-19 Thread Tim Schaub
Hey- jcon...@gmail.com wrote: Hi Tim, I noticed one of your responses in a string to someone about spatial reference here http://preview.tinyurl.com/d2552v I'm attempting to make a change to map I have with a KML over Yahoo maps and I'm having a heck of a time figuring out where I can

Re: [OpenLayers-Users] OpenLayers passing query bounds in wrong projection

2009-03-19 Thread Christopher Schmidt
On Thu, Mar 19, 2009 at 02:56:15PM -0700, SeeJay wrote: Ok, I've been banging my head against this for a couple of days. I'm sure I'm just missing something simple. My map is in epsg:900913, the WFS request is passed to mapserver which hits a postGIS database containing a grand total of 2

[OpenLayers-Users] Adding Text to map.... possible?

2009-03-19 Thread plen
Hello, I am using the OpenLayers drawing controls to add points, lines, and polygons. Our customer would like to also add text to the map, in addition to the other objects. This would allow the user to add some text (ex. Drive straight on this road) and place it on the map (pin it to a geo

Re: [OpenLayers-Users] OpenLayers passing query bounds in wrong projection

2009-03-19 Thread SeeJay
Thanks Chris. That helped! This corrected the coordinates of the bounding box being sent to PostGIS via MapServer, but I've still not quite got it working yet. The WFS points do draw, but at or near the 0,0 point (perhaps their epsg4326 coordinates are being interpreted as epsg900913 meters).

Re: [OpenLayers-Users] Layers are not being drawn - proxy issue?

2009-03-19 Thread J. Brian Adams
I fixed the problem. The first was as you mentioned that I am using Openstreetmaps and I had failed to add the projection to the layer. Adding the line { projection: new OpenLayers.Projection(EPSG:4326) } fixed the problem that I had with a KML point file. But the GML layer then