Hot answers tagged

4

Please check timeline plugin on GitHub. I am sure it will help you. It contains simple library to create a time related map with Open Layers. It supports cluster strategy (Open Layers.Strategy.Cluster) and time filtering. Currently it supports source data in GeoJSON or GeoRSS format.


4

Regarding the comment about two separate labels (one for the "rest of the map" and one for the labels): this is what I thought of as well, and it should be fairly easy to implement: var url = "http://myserver.com/wms"; var background = new OpenLayers.Layer.WMS( "Base Map", url, {layers: 'background'} ); var labels = new OpenLayers.Layer.WMS( ...


4

There may be an easier way of going about this - but the only way I have found to label vector layers in a GeoExt LegendPanel is to give them a style rule with a name. So for styles that dont require rules, i just add one elseFilter rule (so it will always match) and put the name of the layer / feature in its rule oject: new OpenLayers.Style( { ...


4

I think this could be by two reasons: You must set the plugin parameter paging to false to show data always, not depending of the map view. In other way you can take a look at the Geoserver layer to set the parameters "Encuadre Lat/Lon" properly ( sorry i don't know the parameter name in english) . Try like this: { ptype: "gxp_featuremanager",id: "...


4

Use this map, perhaps resolve your problem: map = new OpenLayers.Map({div:'map', allOverlays:true, projection: "EPSG:900913", maxExtent:new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), maxResolution:156543.033928, minResolution:0.018661383858680724, displayProjection:new OpenLayers.Projection("EPSG:...


3

It Just Worked For Me OpenLayers V2.13.1 .olTileImage.olImageLoadError { display: none !important; }


3

Use HTML5 Web Storage, it is perfect for this purpose. Web Storage is a method of storing data to a permanent store in the browser and does away with any need for Cookies. There are two types of Storage localStorage - stores data with no expiration date sessionStorage - stores data for one session This means that you could actually store you list across ...


3

To fix this, go to the Global Settings page in the GeoServer configuration UI. There you enter http://links-map.com/geoserver/ in the "Proxy Base URL" field.


3

This is from the GeoExt quickstart: Download GeoExt from the downloads page. Download OpenLayers 2.10 or later. Download the latest Ext 3.x from the ExtJS website. Place both unpacked libraries in a directory that is published by your web server. That way you make them accessible from the web: <script src="ext-3.3.1/adapter/ext/ext-base.js" type="text/...


3

Expanding on my comment: Mapfish Print versus GeoServer Print module The MapFish Print Module is basically the exact same thing as the GeoServer printing module. In fact, the later is built from the former (the 2.4.x ad 2.5.x modulees is built from mapfish print 1.8. The 2.6 release will include MFP 2.0). At this stage you won't gain much of anything by ...


3

If you want to use OpenLayers 3 with Ext JS 6 you should have a look at https://github.com/KaiVolland/geoext3. It will be merged into https://github.com/geoext/geoext3 in about two weeks. Even if you don't want to use GeoExt 3 itself, you could use some code of the GeoExt.panel.Map and GeoExt.panel.MapController. The most interesting part might be the ...


3

If you have control over the geoserver and you use the html format, you could modify the template server side. Otherwise I can think of retrieving the FeatureInfo as GML2 or text and modify if client-side. But I don't know how this might be implemented in openlayers.


2

GeoServer Exception: No such operation WMS 1.1.0 GetFeature That's correct there is no WMS operation called GetFeature. There is a WMS operation called GetFeatureInfo, and there is a WFS operation called GetFeature.


2

On Linux, you only need to set the PATH for the suite-sdk binary. Do not set JAVA_HOME and ANT_HOME, these are taking care of already.


2

You need to listen to the featureadded event of the vector layer, and then get the geometry there. Have a look at the following JavaScript code: var map; function init(){ map = new OpenLayers.Map('map'); var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'}); var ...


2

It can't work because you have : Ext 4.2.0 Openlayers 2.12 GeoExt 1.1 and if you carefully read http://geoext.org/tutorials/quickstart.html#getting-geoext you have Download the latest Ext 3.x from the ExtJS website Furthermore, read http://blog.opengeo.org/tag/extjs4/ to confirm


2

First things frst, double check that the data is actually lines and hasn't been changed into points without you noticing. Secondly, are you using WMS? If so then, as @iant mentioned, the GeoServer style is probably set to a point style, rather than a line style. In your GeoServer admin pages, go to the layers page and open the layer that you are having ...


2

Ok. The GXP library is probably your best bet if you want simple and are using the OpenGeo Stack. The GXP library actually includes the GeoEXT library an basically just extends it to make the creation of Maps and the inclusion of the GXP plugins simpler. The GXP library requires GeoEXT, EXT and the Openlayers libraries. I hope that is helpful.


2

I don't work with geoserver but mapserver, and once I did a request on google maps. It turned out that it didn't return any features because of google map, the URL took by default its projection because they were working as basemap layers. Ater that I knew that OpenLayers worked in that way. I think you have to examine the URLs with firebug or some similar ...


2

Yes, you have to use proxy. The only format that allows cross-domain (and cross-port) access is JSONP, not pure JSON.


2

In the two styles that work you have a simple polygon symboliser with a fill and stroke while the ones that don't have a polygon symboliser with a fill and a line symboliser with the stroke. So the legend that is drawn is different because that's what you asked for. If you move the stroke into the polygon for the other ones all will be well.


2

As stated here: The limit is about 75. After that, layers can appear above popups. This has to do with the z-index in CSS (determines what is 'above' what). Layers (overlay) start at a z-index of 325. Popups start at 750. Controls start at 1000. Every layer 'takes up' about 5 indexes, so it will reach it's limit at around 75 layers. You cannot have more ...


2

I was also looking at this trying to figure out how to make it work with the composer that comes standard with OpenGeoSuite. If you are in windows and aren't quite ready to create an app with the Boundless SDK, you can still change some of the configurations through the geoexplorer script. If you are in windows the default file location is: C:\Program ...


2

Your for loop will not be entered, because you are trying to get the length of mapPanel.map, which will be undefined. Try to get the length of mapPanel.map.layers instead: listeners: { 'select': function(combo, record) { for(var i = 0; i < mapPanel.map.layers.length; i++) { var myLayer = mapPanel.map.layers[i].name; if (myLayer == this....


2

Just remove the "%". Use return record.getLayer().name.indexOf("beam") == -1; instead of return record.getLayer().name.indexOf("%beam%") == -1;


2

in Ext 4.2 I am using Container inside of Panel: added in initComponent: th.items = [ Ext.create('Ext.Component', { initComponent: function () { var me = this; th.mapContainerId = me.id; me.on("boxready", function () { th.initMap(); }); ...


2

A common reason for such an error is the Same-Origin-Policy. If your Webserver is serving on Port 80 and Geoserver on Port 8080 for example then your request can be blocked because of a violation of the Same Origin Policy. If that's the reason in your case just add a proxy.cgi, adapt it to your needs (correct settings/path for the python shebang, add your ...


2

Call this method for deactivate control: control.deactivate();


2

You don't have that (yet) on GeoExt 3. Meanwhile, you might check another smaller project focused on managing layers, called extjs_ol3_layercontrol. It is also written in ExtJS. Check the blog and the github. If you add the Geoserver capabilities URL (something like http://localhost:8080/geoserver/wms?service=wms&version=1.3&request=GetCapabilities)...


2

You can load the Shapefile into QGIS, then export a webmap (Openlayers or Leaflet) using the qgis2web plugin. It also allows you to upload directly to the web via FTP.


Only top voted, non community-wiki answers of a minimum length are eligible