Jim White | 9 Feb 00:42 2016
Picon
Picon

new to MapBox

Hi,

Can anyone show an example of how to style a Mapbox map with Mapbox studio?

I create a layer with OpenLayers.Layer.XYZ but just get a default style 
and don't know how to add styles.

Using OL2.

Thanks,
Jim

--

-- 
James B. White
Cary, NC
919-380-9615
http://whitecodingandmaps.com

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
prashu84k | 4 Feb 13:36 2016
Picon

Divide map into four/six quadrant - Openlayers3

Hi All,

I want to divide map into four/six quadrant and get extent of each section.
Please see below sample image for reference.

<http://osgeo-org.1560.x6.nabble.com/file/n5248890/sample.png>   

Any help would be appreciated.

Regards,
Prashant 

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Divide-map-into-four-six-quadrant-Openlayers3-tp5248890.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
pedrocostaarma | 2 Feb 16:56 2016
Picon
Gravatar

webgl support



Hi guys,

Can anyone share with me the current state support of webgl render for polygons and lines? I have search and found only this [A] but cannot find nothing more updated.


Thanks in advance



[A] http://www.camptocamp.com/en/actualite/openlayers-3-towards-drawing-lines-and-polygons-with-webgl/

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Nicholas Efremov-Kendall | 28 Jan 19:39 2016
Picon

Uncaught TypeError: this.g.slice is not a function

Hi,

I'm not sure if this is the right place for a question like this, but I posted this in the Drupal OpenLayers Issue queue and didn't get a response.

I'm trying to use custom markers with a drupal openlayers applications, and I get this js error: Uncaught TypeError: this.g.slice is not a function and no markers. I googled this error and only found my own post, so I wanted to punt this to a wider audience.

Any ideas? Apologize is this isn't the right venue.
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Luciano Martin Galletti | 27 Jan 19:45 2016
Picon

GetFeatureInfo Popup problem

I've a problem with getfeatureinfo.

I cannot see popups with infos when i click on polygons or points

this is the code that i use:

// the map panel

var info;
var map = new OpenLayers.Map("map-id");
maxExtent: new OpenLayers.Bounds(143.834,-43.648,148.479,-39.573)
var apiKey = "api";

var mapPanel = new GeoExt.MapPanel({
border: true,
region: "center",
center: [1173892.7542969, 5870273.7714844],
zoom: 3,
layers: [
new OpenLayers.Layer.OSM(),

new OpenLayers.Layer.Vector("Highlighted Features", {
displayInLayerSwitcher: false,
isBaseLayer: false
}),

//
new OpenLayers.Layer.WMS("WMS Test polygon",
"http://localhost:8080/geoserver/wms", {
layers: "prova:poligoni",
transparent: true,
}, {
isBaseLayer: false
,displayOutsideMaxExtent: true

}),
new OpenLayers.Layer.WMS("WMS Test point",
"http://localhost:8080/geoserver/wms", {
layers: "prova:punti",
transparent: true,
format: "image/gif"
}, {
isBaseLayer: false
,displayOutsideMaxExtent: true
})
]
});
// FEATURE POPUP
info = new OpenLayers.Control.WMSGetFeatureInfo({
url: 'http://localhost:8080/geoserver/wms',
title: 'Identify features by clicking',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
});
map.addControl(info);
info.activate();

i use also GEOEXT i don't know if that can be a problem.
Firebug don't give me any error :(

the full page code is here:
http://pastebin.com/j4KfVEUU

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Moises Arcos | 26 Jan 14:40 2016
Picon
Gravatar

Retile in OL 2.11

Hi all,

I have a problem with OpenLayers 2.11 when I change the zoom level, OpenLayers forces base layer to retile current tiles.

I'm talking about moveTo function in Grid.js, where following code exists:

// if grid is empty or zoom has changed, we *must* re-tile var forceReTile = !this.grid.length || zoomChanged;
It is some piece of code which was added 9 years ago in version 2.5 and stayed there until now (2.13.1), so I don't think it would be a bug, but I just don't understand why it is needed. I mean, if zoom changed and I'm going to load new tiles, why to request for current tiles in the first place, if I'm going to change them anyway?

Under which conditions (if any) would it be safe to change the previous code to:

// only if grid is empty, we *must* re-tile var forceReTile = !this.grid.length;
in order to reduce requests in my GIS?
If someone could enlight me, it would be very appreciated.
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
prashu84k | 5 Jan 09:48 2016
Picon

Two units on scaleline control

Hi All,

I want to show 'metric' and 'imperial' both unit simultaneously on scaleline
control. Is is possible to do that?

Any help would be appreciated.

Regards,
Prashant

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Two-units-on-scaleline-control-tp5243733.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Robert Sanson | 30 Dec 21:05 2015

OpenLayers.Layer.XYZ - how to set origin?

Dear OpenLayers Users

I am trying to connect to a custom tile cache, using OpenLayers.Layer.XYZ

The projection used is EPSG:2193 (New Zealand Transverse Mercator) and the tileOrigin for this service is
-1000000, 10000000 (top left)

The extents of the imagery are: [827933.23, 3729820.29, 3195373.59, 7039943.58]

How do I set the tileOrigin on the layer? Is it based on the map maxExtent?

Looking at XYZ.js it has:
/**
     * Method: getXYZ
     * Calculates x, y and z for the given bounds.
     *
     * Parameters:
     * bounds - {<OpenLayers.Bounds>}
     *
     * Returns:
     * {Object} - an object with x, y and z properties.
     */
    getXYZ: function(bounds) {
        var res = this.getServerResolution();
        var x = Math.round((bounds.left - this.maxExtent.left) /
            (res * this.tileSize.w));
        var y = Math.round((this.maxExtent.top - bounds.top) /
            (res * this.tileSize.h));
        var z = this.getServerZoom();

        if (this.wrapDateLine) {
            var limit = Math.pow(2, z);
            x = ((x % limit) + limit) % limit;
        }

        return {'x': x, 'y': y, 'z': z};
    },

    /* APIMethod: setMap
     * When the layer is added to a map, then we can fetch our origin 
     *    (if we don't have one.) 
     * 
     * Parameters:
     * map - {<OpenLayers.Map>}
     */
    setMap: function(map) {
        OpenLayers.Layer.Grid.prototype.setMap.apply(this, arguments);
        if (!this.tileOrigin) { 
            this.tileOrigin = new OpenLayers.LonLat(this.maxExtent.left,
                                                this.maxExtent.bottom);
        }                                       
    },

Many thanks,

Robert Sanson 
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Peter Devoy | 23 Dec 19:23 2015
Picon

closure-util and ES6

I am trying to use a generator function in my code e.g.:

Promise.coroutine(function* () { //...

But closure-util serve doesn't like the asterisk, reporting
"SyntaxError: Unexpected token".

Please can anyone tell me how I might go about about getting this working?

Kind regards

Peter Devoy
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Jerome A. Wendell | 10 Dec 19:33 2015
Picon

Re: API Documentation

Andreas,

 

Thanks very much.  I really appreciate it.

 

Jerome

 

 

From: Andreas Hocevar [mailto:ahocevar-oZ3VkIQlIGX41D9OscTiNg@public.gmane.org]
Sent: Thursday, December 10, 2015 1:15 PM
To: Jerome A. Wendell
Cc: openlayers-users-qjLDD68F18NyQMAyxoHuMA@public.gmane.org
Subject: Re: [OpenLayers-Users] API Documentation

 

Thanks for reporting this. It got lost during a server update yesterday. I just rebuilt it, and your url below is working again.

 

Andreas.



On 10 Dec 2015, at 18:49, Jerome A. Wendell <jawendell-hPWwJ4didUYmnvkBusLcMw@public.gmane.org> wrote:

What happened to the API Documentation for OpenLayers 2.13.1 at the following link: http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers-js.html When I try accessing the link it cannot be found on the server. Thanks, Jerome Wendell 
View this message in context: API Documentation
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users-qjLDD68F18NyQMAyxoHuMA@public.gmane.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

 

— 
Andreas Hocevar
Geospatial Solutions Engineer | Boundless
ahocevar-oZ3VkIQlIGX41D9OscTiNg@public.gmane.org
917-460-7194
<at> boundlessgeo


 

_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Jerome A. Wendell | 10 Dec 18:49 2015
Picon

API Documentation

What happened to the API Documentation for OpenLayers 2.13.1 at the following link: http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers-js.html When I try accessing the link it cannot be found on the server. Thanks, Jerome Wendell

View this message in context: API Documentation
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users <at> lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Gmane