Jan Tappenbeck | 19 Sep 20:18 2014
Picon

Problem to show map in firefox

Hi !

i have following link http://osm.tappenbeck.net/ferry2014/deu/test.html

the problem is it will not show in Firefox 32 on win7 and some other Firefix-Installations (version unknown).

i will make a limit browsertest (http://www.tappenbeck.net/forum/openlayer/browsertest_20140919.jpg) primary linux-os and there it is ok.

did anybody have an idea ? it is very important to fix the problem.

regards Jan
-- Freundliche Grüße Jan Tappenbeck ----------------------------------- OpenStreetMap (OSM) - das FREIE Kartenprojekt http://www.openstreetmap.de N E U ! ! OSM-NEWS für Lübeck & Umgebung unter http://www.osm-luebeck.de TREFFPUNKTE einfach weitergeben mit OpenStreetMap. Einzelheiten hierzu finden Sie auf meinem Blog unter ... http://blog.tappenbeck.net/2013/11/26/openstreetmap-treffpunkte-einfach-weitergeben/ OpenStreetMap mit (FEHLER)HINWEISEN unterstützen Einzelheiten hierzu finden Sie auf meinem Blog unter ... http://blog.tappenbeck.net/2013/12/13/openstreetmap-mit-wenigen-schritten-das-projekt-unterstuetzen/
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Niccolò Dal Santo | 19 Sep 15:45 2014
Picon

Showing points from a database

Hi there,

I am new of Openlayers and I need to show some points that come from a database on a map centred in Turin (Italy), with some information related to this point (for instance an image). Searching on line I have found that Openlayers supports many formats of data like GML, KML, GeoJSON and many others. Could you suggest a format useful fror my problem and maybe some examples of how to use it?

I have tried with this code generating a map of europe, but it doesn't work

<html>
<head>
  <title>Prova GML</title>
    <script src="http://openlayers.org/api/OpenLayers.js"></script>
</head>
    <body>
    <div id="ch3_gml" style="width: 100%; height: 100%;"></div>

    <script type="text/javascript">

        // Create the map using the specified DOM element
        var map = new OpenLayers.Map("ch3_gml");    
        
        var layer = new OpenLayers.Layer.OSM("OpenStreetMap");
        map.addLayer(layer);
        
        map.addControl(new OpenLayers.Control.LayerSwitcher());
        map.setCenter(new OpenLayers.LonLat(0,0), 2);
                
        map.addLayer(new OpenLayers.Layer.Vector("Europe (GML)", {
            protocol: new OpenLayers.Protocol.HTTP({
                url: "./europe.gml",
                format: new OpenLayers.Format.GML()
            }),
            strategies: [new OpenLayers.Strategy.Fixed()]
        }));
    </script>
</body>
</html>

where europe.gml is a gml file in the same folder of this script, but nothing happens.

Thank you very much for your help!

Regards

Niccolò

--
Niccolò Dal Santo
+39 342 15 70 842
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Andreas Forø Tollefsen | 18 Sep 07:51 2014
Picon

Too many layers?

Hi,

I am working on a thematic mapping platform showing data at local administrative levels.
I have many layers, so I run into problems (see screenshot: http://gisintersect.com/many_layers.png).

Is there any way I can collapse groups of layers within the layer switcher?
I have a high number of layers, as you can see in the switcher. Hence, I need some way to collapse/group/categorize the layers, so that I do not need to show all of them in the layerswitcher at once.
The result is that layers drop outside the map, so either, there is a maximum number of layers, or there should be a better way to do it.

Andreas
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
KhunSanAung | 15 Sep 12:08 2014
Picon

How to go the the specific Lat/Long location?

Hi All,

I'm using OpenLayer to construct a map apps. The map layers are published by GeoServer.
Taking input Lat/Long coordinate from user, I'd like to zoom the map to the specific point (Lat/Long).
Or the map would reset the map center to the user's input Lat/Long location.

Does any body ever done it or any body can guide me how to do it?

Many thanks in advanced

--
Have a nice day!
--

Mr. Khun San Aung

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Jürgen Dankoweit | 14 Sep 10:08 2014
Picon

Zoom button "Globe" and zoomToMaxExtent

Hello to the list,

for my project I want to use the button with the globe icon shown by the 
object OpenLayer.Control.PanZoom(). My understandig is that this button 
will zoom to the maxextent of a map. But when I set this maxextent by

obj.map.maxExtent = OpenLayers.Bounds(...).transform(...)

the new bounds are ignored.

The new maxExtent is set by a list where a user can select a region. 
When the user zooms more into the region the user should have the 
possibility to zoom back to the region selected before. Therefore the 
"globe" button provided by the PanZoom object is used.

How to set this maxextent correctly so that it works as expected?

In advance many thanks for the answers.

Best reagrds

Juergen

--------------------------------------------------------------------------
Homepage: www.dankoweit.de
Pedro Costa | 12 Sep 14:11 2014
Picon

draw lines with direction arrows

Hi guys,

I am trying to draw lines with directions (arrows) and after search i am a little bit confused.
Can anyone help me with more information or explain to me what is the better way to do this?


Thanks
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
pablo zader | 12 Sep 05:30 2014
Picon

Taken separately lists layers raster and vector

Hi list

I need to fill two grids, one with raster layers and other with vector layers .
How much  I can take lists raster and vector layers separately using GeoExt.data.WMSCapabilitiesStore? 

Thanks


_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Max Demars | 10 Sep 20:57 2014
Picon

passing attributes in OpenLayers.Layers.Vector addFeatures()

Hi,

I am trying to pass attributes in the same time I add  features to a vector layer in a loop like this:

for (var i = 0; i < inputFeatures.geometry.components.length; i++){
    vectorLayer.addFeatures(new OpenLayers.Feature.Vector(inputFeatures.geometry.components[i]), { 'attributes': inputFeatures.attributes });
  }

This obviously doest not work. Anybody can help with my problem?

Thanks

-Max Demars
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
pablo zader | 4 Sep 02:20 2014
Picon

client wcs

Hi list,
I have several questions about how to use the classes provided openlayers to create a WCS client. I need to select an image from a list provided by GetCapabilities and then click allow to download. Suppose for the moment that the layers are raster.

Question 1:
how to use this class OpenLayers.Format.WCSDescribeCoverage()  to make a  describeCoverage?

Question 2:
I can use the class OpenLayers.Format.WCSGetCoverage() to make getcoverage? 
How to make the file to be downloaded automatically when I invoke this class?

Question 3:
The class OpenLayers.Format.WCSDescribeCoverage/v1_0_0 contain the property "Readers":  As this property is invoked and that is it helpful?

Thanks in advanced

Pablo 

_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
João Rodrigues | 3 Sep 22:23 2014
Picon

Geodesic option for the Scale Bar add-in

Hi.

I am using the Scale Bar Add-in and it doesn't have a geodesic option:

I know that the Scale Line has a geodesic option, but considering that the Scale Bar has a wider variety of options, it would be nice to introduce he geodesic option in this one too.

Could anyone help me with this? How could I introduce a geodesic option in the Scale Bar Add-in?

Thank you

João Rodrigues
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Max Demars | 3 Sep 19:11 2014
Picon

vector layer - featureadded event called twice

Hi list!

I have a problem with the featureadded event of the vector layer. I have a drawfeature control that is linked with a vector layer. I want to send the drawn feature by ajax when the drawn feature is added  to the vector layer.

However, the on featureadded event is triggered once after the first drawing is complete, twice after the second drawing, three times after the third drawing...etc... It should only be triggered once after each drawing.

I have tried with the on sketchcomplete event, but the drawn feature is not yet added in the vector layer when it is triggered. What is the problem?

var tempLayer = new OpenLayers.Layer.Vector('Temp');
var eraseCtrl = new OpenLayers.Control.DrawFeature(tempLayer, OpenLayers.Handler.Polygon);

tempLayer.events.on({featureadded : function(){
          Ext.Ajax.request({
            url: '/basqui/layer/shapefile/split',
            method: 'POST',
            params: {
                      'feature': vectorLayerToGeoJson(),
                      'mask': geoJsonFormat.write(tempLayer.features[0].geometry)
                    },
            success: function(r){
                        tempLayer.removeAllFeatures();
                     }
});

-Max Demars
_______________________________________________
Users mailing list
Users@...
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Gmane