Erik Uzureau | 1 Nov 2008 08:39
Picon
Gravatar

[OpenLayers-Users] threading/synchronicity in javascript

Dear OpenLayers users & dev,

Pardon the non-geo post, but I am wondering if anyone out there has come up across issues with
synchronicity in javascript?

After pouring over this stuff for several hours, I think I am pretty resolved to just say "ok, javascript
is event-driven and not truly multithreaded, so there is no need to worry".

In the off-chance that someone out there might have information otherwise, please let me know.

Below are two of the links that have fed my brain for the last few hours:

debate:
http://stackoverflow.com/questions/124764/are-mutexes-needed-in-javascript

implementation of a mutex in js:
http://www.developer.com/lang/jscript/article.php/3592016
(note that his actual code for this *only* runs in ie, which obviously docks it a fair amount of credit)

cheers,
erik

_______________________________________________
Users mailing list
Users@...
http://openlayers.org/mailman/listinfo/users
Eric Lemoine | 1 Nov 2008 09:53
Picon

Re: [OpenLayers-Users] [OpenLayers-Dev] threading/synchronicity in javascript

If JavaScript code was preemptable I think 1 web app out of 2 would be
unusable because of the many bugs it'd include :-)

2008/11/1, Erik Uzureau <euzuro@...>:
> Dear OpenLayers users & dev,
>
> Pardon the non-geo post, but I am wondering if anyone out there has come up
> across issues with
> synchronicity in javascript?
>
> After pouring over this stuff for several hours, I think I am pretty
> resolved to just say "ok, javascript
> is event-driven and not truly multithreaded, so there is no need to worry".
>
> In the off-chance that someone out there might have information otherwise,
> please let me know.
>
> Below are two of the links that have fed my brain for the last few hours:
>
> debate:
> http://stackoverflow.com/questions/124764/are-mutexes-needed-in-javascript
>
> implementation of a mutex in js:
> http://www.developer.com/lang/jscript/article.php/3592016
> (note that his actual code for this *only* runs in ie, which obviously docks
> it a fair amount of credit)
>
> cheers,
> erik
>
Indika Tantrigoda | 1 Nov 2008 12:40
Picon

Re: [OpenLayers-Users] User inputs in Popups

Hi,
Thanks for the link. This is the kinda thing that I was looking for.

2008/10/31 Arnd Wippermann <arnd.wippermann-S0/GAf8tV78@public.gmane.org>
it's possible to use popups for editing feature attributes.
 
 
If your transcation takes place after you have updated the attributes, i would think the transaction should work.
 
Arnd Wippermann
 
Von: users-bounces-8CpAF3dzRPhD60Wz+7aTrA@public.gmane.org [mailto:users-bounces-8CpAF3dzRPhD60Wz+7aTrA@public.gmane.org] Im Auftrag von Indika Tantrigoda
Gesendet: Freitag, 31. Oktober 2008 14:22
An: Alexandre Dube
Cc: OpenLayers users mailing list
Betreff: Re: [OpenLayers-Users] User inputs in Popups

Hi Alexandre,
Thanks for the reply. I am referring to the html text box inside the popup. Thats where I want to enter the data.
I also included a button in the popup to initiate the transaction. This works fine when I hard code the attribute information.

I did try the method you suggested. Maybe because the html text box is not directly in the web page(but rather in the popup) I didnt have much success. However I will try this again. Maybe I missed something.

If there is any other way of achieving this (maybe with ajax) kindly let me know.

Regards,
Indika

2008/10/31 Alexandre Dube <adube-CX6nfA+BadZWk0Htik3J/w@public.gmane.org>
Hi Indika,


  >> The problem is I am unable to access the input data.

  Do you mean you can't access the html text box ?  If you do, give it and id, access it with document.getElementById('yourId') and parse the text box value to the feature.attributes before saving.  That will add the attribute to your INSERT/UPDATE request at the same time.  I'm not sure if that's what you meant, though.


  >>Also everytime the wfs-insert takes place i get an alert with the transaction results details.
Is there anyway not have the alert come up everytime.

  Search in your files for the "alert" string and just get rid of it.

Hope this helps,

Alexandre

Indika Tantrigoda wrote:
Hello to all,
I have a wfs layer setup which allows me to add points.
I would like the user to enter the attribute information so that it too can get
written to postgres.

I setup a popup with a text box which allows me to add the relevant details.
The problem is I am unable to access the input data.

Is there any way to get around this, or this is an alternative method I could approach.

Also everytime the wfs-insert takes place i get an alert with the transaction results details.
Is there anyway not have the alert come up everytime.

Thanks

Indika
------------------------------------------------------------------------

_______________________________________________
Users mailing list
Users-8CpAF3dzRPhD60Wz+7aTrA@public.gmane.org
http://openlayers.org/mailman/listinfo/users
 


--
Alexandre Dubé
Mapgears
www.mapgears.com



_______________________________________________
Users mailing list
Users@...
http://openlayers.org/mailman/listinfo/users
Kusum | 1 Nov 2008 13:15
Picon

Re: [OpenLayers-Users] Projection Problem

I am using orthographic projection to generate globe layer
Its showing globe but sometimes half of it or some part.
Also I am not able to rotate or pan through the globe.

In openlayers I am using var options =
{
						controls: [],
						restrictedExtent: extent,
						numZoomLevels: 10,
						maxResolution:0.49990340909090999,
						projection:"EPSG:9840"
}

and my mapfile is as follows:-

EXTENT -180 -90 180 90

UNITS DD
SIZE 550 450
PROJECTION
"proj=ortho"
"ellps=WGS84"
"lat_0=51.0000"
"lon_0=0.0000"
"x_0=0.00"
"y_0=0.00"
END

#World_Background
LAYER
    NAME "background1"
    STATUS DEFAULT
    PROJECTION
	"proj=latlong"
	 END
    TYPE RASTER
    DATA "wsiearth.tif"
    TEMPLATE "ttt.html"
END

I am confused this is due to the extent I have set  or projection definition 
set in mapfile.

Please help as this is very urgent and I have a deadline to meet.

Regards
Kusum

--------------------------------------------------
From: "Arnd Wippermann" <arnd.wippermann@...>
Sent: Friday, October 31, 2008 11:01 PM
To: "'Kusum'" <kusum@...>
Cc: <users@...>
Subject: AW: [OpenLayers-Users] Projection Problem

> You can use MapServer to reproject your georeferenced tiff and
> OpenLayers.Layer.MapServer (or OpenLayers.Layer.WMS) to request it from
> Mapserver.
>
> OpenLayers can not reproject raster data as a desktop application as 
> arcgis
> can do. But MapServer could do this part.
>
> Arnd Wippermann
>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces@...
[mailto:users-bounces@...] Im
> Auftrag von Kusum
> Gesendet: Freitag, 31. Oktober 2008 12:46
> An: George Mu'ammar; users@...
> Betreff: Re: [OpenLayers-Users] Projection Problem
>
> Actually I had a tiff image and it was geo referred  and in arc gis I was
> able to see it as globe by changing its projection and to see it in
> openlayers I used OpenLayers.Layer.Image
>
> Did I use the wrong option or Had I to use something different??
>
> Pls reply
>
> Regards
> Kusum
>
> --------------------------------------------------
> From: "George Mu'ammar" <George@...>
> Sent: Friday, October 31, 2008 5:10 PM
> To: <users@...>
> Subject: Re: [OpenLayers-Users] Projection Problem
>
>> Dear Kusum, do this test:
>> Open your gif using any graphics application or browser. Does it look
>> like the map you want to see ? You won't get anything more than that
>> from using an Image layer.
>> Regards
>> --
>> George Mu'ammar
>>
>>
>> Quoting Kusum <kusum@...>:
>>
>>> Dear All
>>>
>>> I have a world image which I want to show at orthographic projection
>>> so that it appears as a globe.
>>> So I am using this image
>>> var options =
>>>      {
>>>             numZoomLevels: 10,
>>>             projection:"EPSG:9840"
>>>      }
>>> layer = new OpenLayers.Layer.Image(
>>>                                 'World Map',
>>>
>>
>>> 'http://localhost/maplab/app_atlas/images/wsiearth.GIF',
>>>                                 new
>>> OpenLayers.Bounds(-180,-47.48309659090924,180,90),
>>>                                 new OpenLayers.Size(580, 320),
>>>                                 options);
>>>
>>>
>>> But it is shown as a flat image and not as globe.
>>>
>>> I am using Mapserver .
>>> Is there any code change I have to make to get the image in globe form.
>>>
>>> Pls suggest.I am completely messed up.
>>>
>>> regards
>>> Kusum
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users@...
>> http://openlayers.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users@...
> http://openlayers.org/mailman/listinfo/users
>
> 
George Mu'ammar | 1 Nov 2008 14:53
Favicon

Re: [OpenLayers-Users] Projection Problem

Can you describe when is it that you see all of it and when is it that  
you see half. Do you do some operation (like pan/zoom) and then you  
see only half ?

or is it that if you refresh the same page sometimes it draws all the  
map and sometimes half ? in this case it could be a performance  
problem of mapserver.

What exactly happens when you try to pan ? in what sense you are not  
able to pan  ?

Is the map online ? can we see ?

Sorry too many questions
-- 
George

Quoting Kusum <kusum@...>:

> I am using orthographic projection to generate globe layer
> Its showing globe but sometimes half of it or some part.
> Also I am not able to rotate or pan through the globe.
>
> In openlayers I am using var options =
> {
> 						controls: [],
> 						restrictedExtent: extent,
> 						numZoomLevels: 10,
> 						maxResolution:0.49990340909090999,
> 						projection:"EPSG:9840"
> }
>
> and my mapfile is as follows:-
>
> EXTENT -180 -90 180 90
>
> UNITS DD
> SIZE 550 450
> PROJECTION
> "proj=ortho"
> "ellps=WGS84"
> "lat_0=51.0000"
> "lon_0=0.0000"
> "x_0=0.00"
> "y_0=0.00"
> END
>
> #World_Background
> LAYER
>     NAME "background1"
>     STATUS DEFAULT
>     PROJECTION
> 	"proj=latlong"
> 	 END
>     TYPE RASTER
>     DATA "wsiearth.tif"
>     TEMPLATE "ttt.html"
> END
>
>
>
> I am confused this is due to the extent I have set  or projection definition
> set in mapfile.
>
> Please help as this is very urgent and I have a deadline to meet.
>
> Regards
> Kusum
>
>
> --------------------------------------------------
> From: "Arnd Wippermann" <arnd.wippermann@...>
> Sent: Friday, October 31, 2008 11:01 PM
> To: "'Kusum'" <kusum@...>
> Cc: <users@...>
> Subject: AW: [OpenLayers-Users] Projection Problem
>
>> You can use MapServer to reproject your georeferenced tiff and
>> OpenLayers.Layer.MapServer (or OpenLayers.Layer.WMS) to request it from
>> Mapserver.
>>
>> OpenLayers can not reproject raster data as a desktop application as
>> arcgis
>> can do. But MapServer could do this part.
>>
>> Arnd Wippermann
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: users-bounces@...
[mailto:users-bounces@...] Im
>> Auftrag von Kusum
>> Gesendet: Freitag, 31. Oktober 2008 12:46
>> An: George Mu'ammar; users@...
>> Betreff: Re: [OpenLayers-Users] Projection Problem
>>
>> Actually I had a tiff image and it was geo referred  and in arc gis I was
>> able to see it as globe by changing its projection and to see it in
>> openlayers I used OpenLayers.Layer.Image
>>
>> Did I use the wrong option or Had I to use something different??
>>
>> Pls reply
>>
>> Regards
>> Kusum
>>
>> --------------------------------------------------
>> From: "George Mu'ammar" <George@...>
>> Sent: Friday, October 31, 2008 5:10 PM
>> To: <users@...>
>> Subject: Re: [OpenLayers-Users] Projection Problem
>>
>>> Dear Kusum, do this test:
>>> Open your gif using any graphics application or browser. Does it look
>>> like the map you want to see ? You won't get anything more than that
>>> from using an Image layer.
>>> Regards
>>> --
>>> George Mu'ammar
>>>
>>>
>>> Quoting Kusum <kusum@...>:
>>>
>>>> Dear All
>>>>
>>>> I have a world image which I want to show at orthographic projection
>>>> so that it appears as a globe.
>>>> So I am using this image
>>>> var options =
>>>>      {
>>>>             numZoomLevels: 10,
>>>>             projection:"EPSG:9840"
>>>>      }
>>>> layer = new OpenLayers.Layer.Image(
>>>>                                 'World Map',
>>>>
>>>
>>>> 'http://localhost/maplab/app_atlas/images/wsiearth.GIF',
>>>>                                 new
>>>> OpenLayers.Bounds(-180,-47.48309659090924,180,90),
>>>>                                 new OpenLayers.Size(580, 320),
>>>>                                 options);
>>>>
>>>>
>>>> But it is shown as a flat image and not as globe.
>>>>
>>>> I am using Mapserver .
>>>> Is there any code change I have to make to get the image in globe form.
>>>>
>>>> Pls suggest.I am completely messed up.
>>>>
>>>> regards
>>>> Kusum
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users@...
>>> http://openlayers.org/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> Users@...
>> http://openlayers.org/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users@...
> http://openlayers.org/mailman/listinfo/users
>
Stephen Woodbridge | 1 Nov 2008 16:41
Favicon
Gravatar

Re: [OpenLayers-Users] User inputs in Popups

Arnd Wippermann wrote:
> 
> it's possible to use popups for editing feature attributes.
>  
> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique_with_group.html 

Very nice example, but in Firefox 3.0.3 on WinNT, the 
transparency/opacity of the pop-ups make them totally unreadable and 
there for unusable. I was only able to understand the example by loading 
it into IE. It would be nice if the opacity issue were fixed even if 
they were made opaque.

Thank you for share that link.

-Steve

> If your transcation takes place after you have updated the attributes, i 
> would think the transaction should work.
>  
> Arnd Wippermann
>  
> *Von:* users-bounces@... 
> [mailto:users-bounces@...] *Im Auftrag von *Indika Tantrigoda
> *Gesendet:* Freitag, 31. Oktober 2008 14:22
> *An:* Alexandre Dube
> *Cc:* OpenLayers users mailing list
> *Betreff:* Re: [OpenLayers-Users] User inputs in Popups
> 
> Hi Alexandre,
> Thanks for the reply. I am referring to the html text box inside the 
> popup. Thats where I want to enter the data.
> I also included a button in the popup to initiate the transaction. This 
> works fine when I hard code the attribute information.
> 
> I did try the method you suggested. Maybe because the html text box is 
> not directly in the web page(but rather in the popup) I didnt have much 
> success. However I will try this again. Maybe I missed something.
> 
> If there is any other way of achieving this (maybe with ajax) kindly let 
> me know.
> 
> Regards,
> Indika
> 
> 2008/10/31 Alexandre Dube <adube@... <mailto:adube@...>>
> 
>     Hi Indika,
> 
> 
>       >> The problem is I am unable to access the input data.
> 
>       Do you mean you can't access the html text box ?  If you do, give
>     it and id, access it with document.getElementById('yourId') and
>     parse the text box value to the feature.attributes before saving.
>      That will add the attribute to your INSERT/UPDATE request at the
>     same time.  I'm not sure if that's what you meant, though.
> 
> 
>       >>Also everytime the wfs-insert takes place i get an alert with
>     the transaction results details.
>     Is there anyway not have the alert come up everytime.
> 
>       Search in your files for the "alert" string and just get rid of it.
> 
>     Hope this helps,
> 
>     Alexandre
> 
>     Indika Tantrigoda wrote:
> 
>         Hello to all,
>         I have a wfs layer setup which allows me to add points.
>         I would like the user to enter the attribute information so that
>         it too can get
>         written to postgres.
> 
>         I setup a popup with a text box which allows me to add the
>         relevant details.
>         The problem is I am unable to access the input data.
> 
>         Is there any way to get around this, or this is an alternative
>         method I could approach.
> 
>         Also everytime the wfs-insert takes place i get an alert with
>         the transaction results details.
>         Is there anyway not have the alert come up everytime.
> 
>         Thanks
> 
>         Indika
>         ------------------------------------------------------------------------
> 
>         _______________________________________________
>         Users mailing list
>         Users@... <mailto:Users@...>
>         http://openlayers.org/mailman/listinfo/users
>          
> 
> 
> 
>     -- 
>     Alexandre Dubé
>     Mapgears
>     www.mapgears.com <http://www.mapgears.com>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users@...
> http://openlayers.org/mailman/listinfo/users
Christopher Schmidt | 1 Nov 2008 17:15

Re: [OpenLayers-Users] Horizontal toolbar inside map

On Fri, Oct 31, 2008 at 03:02:37PM -0400, Alexandre Dube wrote:
> Does anybody have an example of an horizontal toolbar inside the map to 
> share ?

http://openlayers.org/dev/examples/editingtoolbar.html

Regards,
--

-- 
Christopher Schmidt
MetaCarta
Christopher Schmidt | 1 Nov 2008 17:20

Re: [OpenLayers-Users] Problems with map.panTo()

On Fri, Oct 31, 2008 at 02:29:21AM -0700, S.Reena wrote:
> 
> Hey,
> I tried alerting the values and 
> 
> map.maxExtent() gives ( -180,90,180,90)
> map.minExtent() gives null
>  Projection is
> PROJECTION
>    "init=epsg:4326"
> 
> 
> The latlong is within the map only but still its not working :(

Can you provide an example reproducing the problem?

-- Chris

> 
> 
> Christopher Schmidt-4 wrote:
> > 
> > On Fri, Oct 31, 2008 at 01:16:53AM -0700, S.Reena wrote:
> >> 
> >> Hi,
> >> 
> >> I am trying to use map.panTo() to pan to specified latlon( on top and
> >> bottom
> >> of map)but somehow the map is not panning to that lat long and remains
> >> somewhere near the center only ...Can any1 suggest something..
> > 
> > Is your map projected? Are you specifying projected coordinates?
> > 
> > Are you specifying a lonlat outside the mapextent?
> > 
> > Regards,
> > -- 
> > Christopher Schmidt
> > MetaCarta
> > _______________________________________________
> > Users mailing list
> > Users@...
> > http://openlayers.org/mailman/listinfo/users
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/Problems-with-map.panTo%28%29-tp20261599p20262435.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Users mailing list
> Users@...
> http://openlayers.org/mailman/listinfo/users

--

-- 
Christopher Schmidt
MetaCarta
Jan Schorn | 1 Nov 2008 19:38

[OpenLayers-Users] KML layer in UTM coordinates

Dear OpenLayers community:

First of all, thanks to all of you for the development of this great tool!

And thanks for your time thinking about the problem i'm going to 
describe in the following frases:
I'm struggeling with adding a GML (KML) layer to a UTM map. Thinking it 
has to do with coordinate transformations, I intented to adopt the 
solutions described in mails in the list the last montths, but i can't 
bring the application to work - using OpenLayers version 2.7.

The Problem:
I've a map in UTM coordinates (Zone 28N, WGS84. EPGS: 32628), the 
basemap is a wms layer which is beeing displayed fine.
Now i want to add a Google Earth KML point layer, but it doesn't work 
(for the KML see the end of the mail).

What I did:
1. Created the defs EPSG32628.js the code is

Proj4js.defs["EPSG:32628"] = "+proj=utm +zone=28 +ellps=WGS84 
+datum=WGS84 +units=m +no_defs ";

2. Included the 3 scripts: proj4js.js EPSG32628.js and EPSG90013.js to 
the application via the script-tag.

Then starting to search for a solution do project the KML. I tried 2 
diferent ways described in the mailinglist, but without success. Even I 
don't know which way would be the smartest one.

FIRST WAY was proceeding like discussed by Saris and Eric in 
http://openlayers.org/pipermail/users/2008-October/008170.html – there i 
tried both solucions without success:
WAY 1a (see http://www.cenit-geosistemas.com/viewer/viewer1a.html ):

var kml = new OpenLayers.Layer.GML("KML", 
"http://cenit-geosistemas.com/visor/kml.kml", {
projection: new OpenLayers.Projection("EPSG:900913"),
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true,
}});

WAY 1b ( see http://www.cenit-geosistemas.com/viewer/viewer1b.html ):

var kml = new OpenLayers.Layer.GML("KML", 
"http://cenit-geosistemas.com/visor/kml.kml", {
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true,
internalProjection: new OpenLayers.Projection("ESPG:900913"),
externalProjection: new OpenLayers.Projection("ESPG:32628")
}});

=> SAME RESULTS for both cases:
IE7 and firefox displays the basemap and if the kml is activated the 
application has problem when navegating in the map.

SECOND WAY was redefining the preFeatureInsert Method of 
OpenLayers.Layer.Vector the way Mike described in 
http://www.nabble.com/reprojection-of-vector-layer-from-wgs84-to-sphericalmercator-td14801474.html
(see http://www.cenit-geosistemas.com/viewer/viewer2.html )

preFeatureInsert = function(feature) {
var src = new OpenLayers.Projection('EPSG:900913');
var dest = new OpenLayers.Projection('EPSG:32628');
for (var i = 0; i < feature.geometry.components.length; i++) {
OpenLayers.Projection.transform(feature.geometry.components[i], src, dest);
}
};

// the definition of the kml-layer now looks like:

var kml = new OpenLayers.Layer.GML("KML", 
"http://cenit-geosistemas.com/visor/kml.kml", {
preFeatureInsert:preFeatureInsert,
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true,
}});

Well, i even don't know if the problem has to do with the coordinate 
transformation if it is caused by something else...

Thanks a lot for any advice on how to display the KML in UTM coordinates 
with the EPSG:32628 wms-basemap!

Best regards,
Jan

***************************************

HERE COMES THE HTML AND THE KML:

FIRST THE HTML

<?xml version="1.0" encoding="iso-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Display a KML-file in UTM coordenates in OpenLayers</title>
<link rel="stylesheet" href="mapa.css" type="text/css"></link>
<script type="text/javascript" src="OpenLayers/OpenLayers.js"></script>
<script type="text/javascript" src="proj4js/lib/proj4js.js"></script>
<script type="text/javascript" 
src="proj4js/lib/defs/EPSG900913.js"></script>
<script type="text/javascript" src="proj4js/lib/defs/EPSG32628.js"></script>
<script type="text/javascript" 
src="OpenLayers/lib/Firebug/firebug.js"></script>
<script type="text/javascript">

var map;

function init(){
map = new OpenLayers.Map('map', {
projection: new OpenLayers.Projection('EPSG:32628'),
maxExtent: new OpenLayers.Bounds(319000, 3116000, 335300, 3128000),
units: 'm',
maxResolution: 'auto',
controls: []
});

var wms = new OpenLayers.Layer.WMS("Ortofoto", 
"http://idecan3.grafcan.es/ServicioWMS/OrtoExpress?", {
'layers': 'ortoexpress',
'srs':'EPSG:32628'
});

//HERE I INSERTED THE DIFERENT ATTEMPTS TO DEFINE THE KML-LAYER 
DESCRIBED ABOVE!
var kml = new OpenLayers.Layer.GML( -- see above --- );

map.addLayers([wms,kml]);

map.addControl(new OpenLayers.Control.PanZoom());
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.MouseDefaults());

var center, zoom;
center = new OpenLayers.LonLat(327150, 3122000);
zoom = map.getZoomForExtent(map.maxExtent);
map.setCenter(center, zoom);
}

</script>
</head>
<body onload="init()">
<table width="100%" height="100%">
<tr>
<td style="vertical-align:top" width="250px">
<div id="titulo">KML with LongLat coordinates in OpenLayers 
(UTM)</div><br><br>
<a href="http://www.cenit-geosistemas.com/viewer/kml.kml"> View the kml 
en google earth </a><br>
<p>Datos: Grafcan<br> SRS: WGS84 UTM Zone 28N</p>
</td>
<td>
<div id="map"></div>
</td>
</tr>
</table>
</body>
</html>

*****

AND THE KML

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<name>KML</name>
<Style id="sh_sunny">
<IconStyle>
<scale>1.4</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/sunny.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<Style id="sn_sunny">
<IconStyle>
<scale>1.1</scale>
<Icon>
<href>http://maps.google.com/mapfiles/kml/shapes/sunny.png</href>
</Icon>
<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
</IconStyle>
</Style>
<StyleMap id="msn_sunny">
<Pair>
<key>normal</key>
<styleUrl>#sn_sunny</styleUrl>
</Pair>
<Pair>
<key>highlight</key>
<styleUrl>#sh_sunny</styleUrl>
</Pair>
</StyleMap>
<Placemark>
<name>Horno</name>
<description></description>
<LookAt>
<longitude>-16.749093</longitude>
<latitude>28.196578</latitude>
<altitude>0</altitude>
<range>14987.2345530687</range>
<tilt>0</tilt>
<heading>-5.761902813094587</heading>
<altitudeMode>relativeToGround</altitudeMode>
</LookAt>
<styleUrl>#sn_horno</styleUrl>
<Point>
<coordinates>-16.749093, 28.196578,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>
Arnd Wippermann | 1 Nov 2008 19:47
Picon

Re: [OpenLayers-Users] User inputs in Popups

FireFox 3.0.1 on XP is the same. Thanks for the tip. I have updated the
page.

Arnd Wippermann

-----Ursprüngliche Nachricht-----
Von: woodbri@...
[mailto:woodbri@...] 
Gesendet: Samstag, 1. November 2008 16:42
An: Arnd Wippermann
Cc: 'Indika Tantrigoda'; users@...
Betreff: Re: [OpenLayers-Users] User inputs in Popups

Arnd Wippermann wrote:
> 
> it's possible to use popups for editing feature attributes.
>  
> http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique
> _with_group.html

Very nice example, but in Firefox 3.0.3 on WinNT, the transparency/opacity
of the pop-ups make them totally unreadable and there for unusable. I was
only able to understand the example by loading it into IE. It would be nice
if the opacity issue were fixed even if they were made opaque.

Thank you for share that link.

-Steve

> If your transcation takes place after you have updated the attributes, 
> i would think the transaction should work.
>  
> Arnd Wippermann
>  
> *Von:* users-bounces@...
> [mailto:users-bounces@...] *Im Auftrag von *Indika 
> Tantrigoda
> *Gesendet:* Freitag, 31. Oktober 2008 14:22
> *An:* Alexandre Dube
> *Cc:* OpenLayers users mailing list
> *Betreff:* Re: [OpenLayers-Users] User inputs in Popups
> 
> Hi Alexandre,
> Thanks for the reply. I am referring to the html text box inside the 
> popup. Thats where I want to enter the data.
> I also included a button in the popup to initiate the transaction. 
> This works fine when I hard code the attribute information.
> 
> I did try the method you suggested. Maybe because the html text box is 
> not directly in the web page(but rather in the popup) I didnt have 
> much success. However I will try this again. Maybe I missed something.
> 
> If there is any other way of achieving this (maybe with ajax) kindly 
> let me know.
> 
> Regards,
> Indika
> 
> 2008/10/31 Alexandre Dube <adube@... 
> <mailto:adube@...>>
> 
>     Hi Indika,
> 
> 
>       >> The problem is I am unable to access the input data.
> 
>       Do you mean you can't access the html text box ?  If you do, give
>     it and id, access it with document.getElementById('yourId') and
>     parse the text box value to the feature.attributes before saving.
>      That will add the attribute to your INSERT/UPDATE request at the
>     same time.  I'm not sure if that's what you meant, though.
> 
> 
>       >>Also everytime the wfs-insert takes place i get an alert with
>     the transaction results details.
>     Is there anyway not have the alert come up everytime.
> 
>       Search in your files for the "alert" string and just get rid of it.
> 
>     Hope this helps,
> 
>     Alexandre
> 
>     Indika Tantrigoda wrote:
> 
>         Hello to all,
>         I have a wfs layer setup which allows me to add points.
>         I would like the user to enter the attribute information so that
>         it too can get
>         written to postgres.
> 
>         I setup a popup with a text box which allows me to add the
>         relevant details.
>         The problem is I am unable to access the input data.
> 
>         Is there any way to get around this, or this is an alternative
>         method I could approach.
> 
>         Also everytime the wfs-insert takes place i get an alert with
>         the transaction results details.
>         Is there anyway not have the alert come up everytime.
> 
>         Thanks
> 
>         Indika
>         
> ----------------------------------------------------------------------
> --
> 
>         _______________________________________________
>         Users mailing list
>         Users@... <mailto:Users@...>
>         http://openlayers.org/mailman/listinfo/users
>          
> 
> 
> 
>     -- 
>     Alexandre Dubé
>     Mapgears
>     www.mapgears.com <http://www.mapgears.com>
> 
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> Users mailing list
> Users@...
> http://openlayers.org/mailman/listinfo/users

Gmane