ANC | 18 Apr 21:41 2014
Picon

Create and Email GPX file from Vector layer

Hello

I have a mobile app that captures the path a user is following using
geolocation's watch mode. The path points are added to a vector layer. Once
the path capture is finished I want to create a GPX file out of it and email
it to a user selected email address from the mobile device.

The vector layer where the path points are captured is named "path", the map
is in 4326 projection and I am using this code to parse the features as GPX:

var pathfeatures = path.features();

var gpxformat = new OpenLayers.Format.GPX({
            internalProjection: new OpenLayers.Projection("EPSG:4326"),
            externalProjection: new OpenLayers.Projection("EPSG:4326")
        });

var gpxcontents = gpxformat.write(pathfeatures);

My questions are:

1. How do I create the actual GPX file from the "gpxcontents" variable,
something like "path.gpx"?
2. Once the gpx file is created, how can I send it as an email attachment?  

I have searched this forum as well as other resources and have not been able
to find a guideline. I know the second question may not be OpenLayers
related but any help will be appreciated.

Thank you
(Continue reading)

Luca Manganelli | 17 Apr 15:30 2014
Picon

More precise geolocation?

Hi,

is there any way to obtain more precise geolocation?

In my code, the options of Control.geolocation are:

    var geolocate = new OpenLayers.Control.Geolocate({
        id: 'locate-control',
        geolocationOptions: {
            enableHighAccuracy: true,
            maximumAge: 0,
            timeout: 30000
        }
    });

It would be nice to have a precision to some meters, not 50-100 meters away.

Any hints?
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Frederick Löbig | 14 Apr 15:36 2014
Picon

Pinch-Zoom / Drag while having an active clickControl

Hi all,

I have a small problem which I think can be solved pretty quickly. 

The map I have as multiple different "clickControls", which, depending on which one is activated, lead to several different actions. One of these controls is a simple clickFeature, to show a detail window of the selected vector feature (added via a GML file). I now want to use pinch zoom and simple map dragging without selecting a feature each time I touch the map. So basically, what I want to achieve is, to drag and zoom the map in any case, even if I hold down on a feature. This is my code for the selectFeature control:

clickFeature = new OpenLayers.Control.SelectFeature(
  [pointLayer],
  {
  clickout: true, toggle: false,
  multiple: false, hover: false,
  }
);
map.addControl(clickFeature);
pointLayer.events.on({
  "featureselected": function(e) {
//drag.activate();
                                                //openDetail(e.feature.attributes.Id);
ajax_request('mob_detail.php','POST','?t=1&id='+e.feature.attributes.Id,'mob_detailLayer');
                                                closeToolTip();
//dumpProps(e.feature.attributes);
                                                //document.getElementById("debug").value=e.feature.attributes.Id;
  },
  "featureunselected": function(e) {
closeDetail();
  }
  });
  
clickFeature.activate();





This is the link to the current application: www.linie11.org/mapApp/go_map.php 
Any ideas? Thanks in advance! It's driving me crazy right now...

Cheers,
Freddy
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Frederick Löbig | 13 Apr 10:22 2014
Picon

Layer . vector problem in Chrome

Hi list,

I have a problem using an gml vector layer in Google Chrome. When I navigate to the following link (www.linie11.org/index.php/karte), all it shows is one marker icon, although all markers are on the map (you can see this via the tooltip info). It works in ff and ie. Is this a known issue? I have not changed anything, happens since the last update of Chrome I guess...

Thanks for your help / info!
Cheers, Freddy
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
acousmetre | 11 Apr 11:04 2014
Picon

popup scroll problem on iPad

Hello, I've noticed for some time that scrolling in openlayers popups
doesn't work on iPads (I've tested Safari with iOS7.1 on an iPad2). I've
not found any solutions with Google. Please, does anyone on this list
have any suggestions?

My test page is here: http://audiocena.com.br/cerrado/mapa/index.php

On the iPad, I'm also unable to close the popups - although
popup.destroy() seems to be working, so perhaps I can find a workaround
for this aspect. 

Thanks
acousmetre | 11 Apr 10:44 2014
Picon

popup scroll problem on iPad

Hello, I've noticed for some time that scrolling in openlayers popups
doesn't work on iPads (I've tested Safari with iOS7.1 on an iPad2). I've
not found any solutions with Google. Please, does anyone on this list
have any suggestions?

My test page is here: http://audiocena.com.br/cerrado/mapa/index.php

On the iPad, I'm also unable to close the popups - although
popup.destroy() seems to be working, so perhaps I can find a workaround
for this aspect. 

Thanks
thefairyandthesad | 6 Apr 19:54 2014
Picon

OpenLayers.Control.Measure - change decimal separator

Hello,
 
it seems to be a small problem, but how can I change the decimal separator from point to comma?
 
Setting ...
 
OpenLayers.Number = {
    decimalSeparator: ","
}
 
... in BaseTypes.js doesn´t have any effect.
 
Maybe someone does know the line in the code. Thank you.
 
Chris
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Wintermute | 4 Apr 14:13 2014
Picon

Memory leak with Firefox?

hi,

I noticed a possible memory leak situation in my application using Firefox
28. I'm able to reproduce this with the fullscreen example
(http://openlayers.org/dev/examples/fullScreen.html).
While just panning around, the private bytes of the Firefox process are
constantly increasing (used Process Explorer on Windows). If you're doing
this for a few minutes it goes up to 2.5GB where Firefox crashes.

Checking against latest Google Chrome I did also see an increase of private
bytes, but after a few seconds of idle time (no panning action), that memory
is released again. That release never seems to happen in Firefox.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Memory-leak-with-Firefox-tp5133109.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Stephen Woodbridge | 4 Apr 03:35 2014

Is the website Down?

Hi,

Is the website down?
It keeps timing out on me.

Is there a mirror somewhere that is up?

Thanks,
   -Steve
David Doyle | 2 Apr 00:17 2014

shadow, or offset, a vector layer

For visual interest, I'd like to add a shadow under some vector data that I have in OpenLayers.  I can't find any information on adding a drop shadow to a vector layer.  Is there a way to do this?

 

Barring that, I can add the same data again, but give it a different style to make it appear to be a shadow.  However, to make this look good, I need to offset the data slightly.  Is there some way to translate the vector data so that it is shifted a pixel down and to the right?

 

Dave

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Ruben Oliveira | 1 Apr 19:07 2014
Picon

SLD creation with Function name="Categorize"

I'm trying to create an SLD like this:

var sldFormater = new OpenLayers.Format.SLD({
        profile: "GeoServer",
        multipleSymbolizers: false,
        namedLayersAsArray: true
    });

var xmlReader = new OpenLayers.Format.XML();
var xmlDoc = xmlReader.read(sldAsXmlString);
var sld = sldFormater.read(xmlDoc);

My problem is that sldAsXmlString has a tag like this:

<ogc:Function name="Categorize">
                     
                     <ogc:Function name="IEEERemainder">             
                       <ogc:PropertyName>AZIMUTH</ogc:PropertyName> 
                        <Literal>360</Literal>                       
                     </ogc:Function>
 
                     <ogc:Literal>0</ogc:Literal>
                     <ogc:Literal>0</ogc:Literal>
                     <ogc:Literal>1</ogc:Literal>
                     
                   </ogc:Function>

When I inspect variable sld,there is no property refering to
Function name="Categorize".

The problem is in


sldFormater.read(xmlDoc)

because xmlDoc is well formed, including the tag <ogc:Function name="IEEERemainder">

Is the parser ignoring this tag? If so, why?

Thanks in advance!





--
Melhores cumprimentos / Best regards,
Ruben Oliveira

www.rubenoliveira.com
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Gmane