[OpenLayers-Users] Two questions on google maps

2010-05-25 Thread Phil Scadden
1/ I notice V2 of the google Map API is now deprecated. Is there a development to move openlayers to V3? (looks like some good reasons to do so). 2/ Anyone know if there is a way to get at unminified google maps api? One the issues I have is where the checkresize() method is called. In a GOOD

Re: [OpenLayers-Users] Problems when using IE7 or Safari page zoom feature

2010-05-25 Thread palewire
Thanks for the tip. I've filed the ticket. https://bugs.webkit.org/show_bug.cgi?id=39698 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-when-using-IE7-page-zoom-feature-tp2637599p5101052.html Sent from the OpenLayers Users mailing list archive at Nabble.com. __

[OpenLayers-Users] ol+ags integration

2010-05-25 Thread Nathaniel Wingfield
I'm embarking on an ambitious project with ArcGIS Server and would like to use OpenLayers for the front-end. I found some info (http://www.mkgeomatics.com/apps/REST_Dev/) about adding identify & geoprocessing support but the links to august's sandbox are dead and the work has been removed from

Re: [OpenLayers-Users] Layer Switcher Outside of Map Window

2010-05-25 Thread Marjie Anderson
If I understand what you want correctly, this is shown in the examples. I used it in my project (demo here): http://marjie.info/map/ In the javascript, after initialiazing your map: map.addControl(new OpenLayers.Control.LayerSwitcher( { 'div': OpenLayers.Util.getElem

Re: [OpenLayers-Users] Layer from raster images...

2010-05-25 Thread Arnd Wippermann
Hi As a workaround you could try with a point vectorlayer and externalGraphic. With small images it works. Problem is, when the insert point is outside the viewport, then the externalGraphic will not displayed. Example with nine images http://gis.ibbeck.de/ginfo/apps/OLExamples/OL29/ExternalGra

[OpenLayers-Users] Converting distance to map units?

2010-05-25 Thread Xingshan He
I am trying to create a circle with fixed radius programatically and am using OpenLayers.Geometry.Polygon.createRegularPolygon(center, radius, sides, angle) to do that. I have trouble converting my distance, say 800 feet, to the correct radius value in map units. This is what I do: var

Re: [OpenLayers-Users] GetFeatureInfo returns attribute nameonly(Mapserver & Openlayers)

2010-05-25 Thread Arnd Wippermann
Hi, It's an issue with MapServer. If the returned html shows only "[NAME]" as in the template, then it means, that MapServer couldn't resolve the tag. Perhaps you have no column NAME in your data or it's an issue with upper and lowercase. Try 'wms_feature_info_mime_type' 'text/plain' 'wms_includ

Re: [OpenLayers-Users] getLonLatFromPixel in IE

2010-05-25 Thread Luís de Sousa
2010/5/25 Frank Broniewski Hi, well obviously you can't pass any arguments to an event function (in IE). The function only has access to window.event. You can do function coords(event) { var xy = event.object. > > getLonLatFromViewPortPx(event.xy); >var x = xy.lon

Re: [OpenLayers-Users] IE7 and Firefox draws icons to different places

2010-05-25 Thread ahlah
Hi, I made a simple example with hardcoded values and both browsers works fine, icon is in same correct place. So it seems that problem isn't in renderer. But there is some difference in behaviour between Firefox and IE because the use case is same, data in database is same and javascript code i

Re: [OpenLayers-Users] First project for Openlayers newbie: HELP!

2010-05-25 Thread Mapmaker
Robert, Welcome to OpenLayers! You have several options for getting your GIS data into OL. The size of your shapefile and the number of features you are managing will most likely drive what format will work best in your situation. If you are working with tens or even hundreds of points, you ma

Re: [OpenLayers-Users] getLonLatFromPixel in IE

2010-05-25 Thread Frank Broniewski
Hi, well obviously you can't pass any arguments to an event function (in IE). The function only has access to window.event. You can do function coords(event) { var xy = event.object.getLonLatFromViewPortPx(event.xy); var x = xy.lon; var y = xy.lat;

Re: [OpenLayers-Users] getLonLatFromPixel in IE

2010-05-25 Thread Luís de Sousa
Hi Frank, Thank you for your help, but the problem isn't registering the listener, but the argument IE is passing to it. The object with which the showCoords function is invoked seems to null, so the .xy property generates an error. Thanks, Luís On Tue, May 25, 2010 at 12:17 PM, Frank Broniews

[OpenLayers-Users] Format.geojson.write - missing crs with featurecollection

2010-05-25 Thread Frank Broniewski
Hi, I'm using Format.GeoJSON for talking with my server. When creating new Features and sending them to my server I saw that OL sends the new features as a featurecollection object. But there is no crs attached. Looking at the code, the crs is only attached to instances of OL.Features.Vector.

Re: [OpenLayers-Users] getLonLatFromPixel in IE

2010-05-25 Thread Frank Broniewski
Hi, I use map = new OpenLayers.Map(map_div); ... map.events.register("click", map, showCoords); where showCoords the function for display is. Alternatively see http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/events.html for an alternate example Frank > > > OpenLayers Demo >

[OpenLayers-Users] getLonLatFromPixel in IE

2010-05-25 Thread Luís de Sousa
Hello everyone, Please check the code below. This is a very simple map with an event listener that shows the coordinates when you click on it. It works on every know web browser in the world, Firefox, Opera, Chrome, except for ... yes you guessed it, Internet Explorer! Is there any work around fo

[OpenLayers-Users] [openlayers users]

2010-05-25 Thread Tonton
hello i would like to have a layers switcher in external of the map box. is it possible to use OL for or is it necessary to use a other JS library with i thing about something like that function valider() { var valeur = document.choisir.nomdeCouche; for (var i=1;i < valeur.length; i++

Re: [OpenLayers-Users] display different popup for different layer

2010-05-25 Thread Alessandro Pasotti
In data lunedì 24 maggio 2010 15:14:54, Giuseppe Naponiello ha scritto: : > Hi all, > in my project I've 2 layers (layer1, layer2) with different attributes. > Layer 1 is in gml format, layer2 is a txt file > When I click on the layer1, I open a popup with this code: > > function onPopupClose(evt)

[OpenLayers-Users] [Bug] IE8:XML.js Attributes with null-value

2010-05-25 Thread Dipl. Inf. Carsten Eider
Hi list, when serializing features with null values on attributes on IE8, then there is a exception in XML.createTextNode. Line 247 "node = this.xmldom.createTextNode(text);" fails, as text is a null-Object. Placing "if (text==null) text='';" before works fine. Any better suggestion

[OpenLayers-Users] layer.clone()

2010-05-25 Thread Slawomir Messner
Hi, is it possible that the clone() method of OL.Layer.Vector clones the features but forgets to set the layer attribute of each feature to the cloned layer? I had the problem, that I couldn't modify the features in the new layer until I wrote the following code after cloning: for (var t = 0; t