Tag Info

Hot answers tagged

15

Newer versions of OpenLayers (post 2.11) should use CSS classes for this. .olImageLoadError { /* when OL encounters a 404, don't display the pink image */ display: none !important; }


9

There is probably no answer to such a question. Using or not using geoExt depends of your needs. For a couple of projects I would rather advice you to simply use openlayers + jQuery. If your projects are more complexes, geoExt can be a great library and you probably should have a look on Mapfish project as well, since it also embeds ExtJS. Since mapfish is ...


7

GeoExt is the primary UI wrapper that people use with OpenLayers. It is under active development, well-supported by a broad open source community, and based on a well-maintained UI library with commercial support. Commercial support also exists for GeoExt. If you're going to build a complex UI, it is likely that you are going to, at some point, get to the ...


6

I think that's what OpenLayers BoundingBox strategy is good for. A simple strategy that reads new features when the viewport invalidates some bounds. If it's in OpenLayers, it should be available in GeoExt too.


6

As GeoExt is using OpenLayers for the map interface, you could use its MousePosition contol : http://openlayers.org/dev/examples/mouse-position.html


6

Looking at your code you either need to: map.addLayer(wfs); or map.addLayers([wfs]); You have map.addLayers(wfs), which is incorrect, I believe.


6

I'm going to make the following assumptions: url = http://insert.your.url.com/path (which will be wrong) your not using any library, i.e. no jQuery, no AJAX you're interested in the built in XMLHttpRequest() object you would like to handle asynchronous requests (instead of synchronous) you can replace the error / success handler with something else you ...


6

Go through the following questions. GIS for the web Steps to Start Web Mapping Web GIS Development Skill Sets


5

That will work as Mapnik can be configured as a WMS (http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide) but I think you are supposed to just build out all the tiles in the world and serve them directly to openlayers (assuming that you have enough disk space). See http://openlayers.org/dev/examples/tilecache.html for an example.


5

GeoExt is available under BSD, but ExtJS, on which GeoExt depends, is not free for commercial use and has to be purchased.


5

You can do a post request in OpenLayers like this: var postData = ""; //insert your data to post here var request = new OpenLayers.Request.POST({ url: "http://host/path", data: postData, headers: { "Content-Type": "text/xml;charset=utf-8" }, callback: function (response) { //read the response from GeoServer var ...


5

Set the following parameters in OpenLayers: // Avoid pink error tiles OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3; OpenLayers.Util.onImageLoadErrorColor = "transparent"; Reference document/tutorial: http://workshops.opengeo.org/stack-intro/openlayers.html Please note that 3 is a very high-tolerance value for reload attempts IMHO and could be lowered to just 1. ...


5

i think you can achieve this with some css bindings which is not a gis solution. in css there are lots of css media types and one of these is print element. you can add this to your index page with this way: <link rel="stylesheet" type="text/css" media="print" href="print.css"> and with some css code may help you. body { background: white; ...


5

When you unzip the file, there is a 135 kB minified GeoExt.js in the GeoExt/script folder. The Development version is present at the GeoExt/lib/GeoExt.js location, while the compressed & minified version is located at GeoExt/script/GeoExt.js.


4

The map definitions should be in the YAML file. These are then accessed through the print web service via the info.json page. http://www.mapfish.org/doc/print/protocol.html For testing you can always hardcode these parameters by creating a JSON object: var printCapabilities = { "scales":[ {"name":"25000"}, {"name":"50000"}, ...


4

In regards to TileMill, you export a map as MBTiles and then can either turn it into flat image files with mbutil that you can put on a web server or S3, or you can use TileStream to serve the MBTiles file dynamically. Like any tile server, you then use OpenLayers (or Modest Maps, Polymaps, Google Maps) for a Javascript API.


4

For the OpenLayers.Format.GeoJSON feature collection use an OpenLayers.Layer.Vector instance. Examples from the OpenLayers Examples Gallery: http://openlayers.org/dev/examples/geojson.html http://openlayers.org/dev/examples/vector-formats.html http://dev.openlayers.org/docs/files/OpenLayers/Layer/Vector-js.html Use a zoom based strategy for displaying ...


4

Have a look to see if there are any columns in your database named "addr" or similar. If there are then you may be able to query the database directly and isolate these rows. If not, you probably need to create a database schema with address tags included from scratch. Broadly how I might go about doing it is as follows: Run the raw .osm datafile through ...


4

GeoExplorer is written using Ext JS 3.4 and Geo Ext Js Libraries. Try this tutorial from Open Geo. With this tutorial you will create similar app


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.


3

To get the number of features from a layer in the server you need to use the WFS (Web Feature Service) request. You will need to call GetFeature and set the parameter resultType to hits (resultType=hits). This will just give you an integer count of the number of features you've requested (as opposed to returning all the features, as a GetFeature request ...


3

This was recently asked on the GeoExt mailing list - http://www.geoext.org/pipermail/dev/2011-May/001008.html In a word - no, and there are as yet no ongoing development plans to do so, but it will be done eventually.


3

From geoExt, you should refer to the layer name, not to the object. The problem and the solution are explained on that thread.


3

You should use a following way: var legendPanel = new GeoExt.LegendPanel({ ... map: map, defaults: { showTitle: false, baseParams: { FORMAT: 'image/png' } } });


3

I would argue that the JSAPI already provides equivalent functionality to what's in GeoExt. All of the additional widgets provided by dojo are just a require statement away. It's up to you how you use them. Here's an example of a JSAPI site that has always struck me as having a "GeoExt feel": http://uplan.utah.gov/ For your specific case of a tooltip on ...


3

did you try this for adding some default image on image error: OpenLayers.Util.onImageLoadError = function(){ this.src = "images/blank.png"; };


3

The correct url for the legend graphic for each layer and style is embedded in the GetCapabilities response as the LegendURL element. To get it: fetch the capabilities xml document parse it (OpenLayers has a parser class) retrieve the LegendURL for each layer you're interested in Alternatively you can build a GetLegendGraphic request by following the ...


3

you can achive this with immediate measures and OpenLayers Measure Example will help you about your que. Dont forget to check measure distance and use immediate measures... i hope it helps you


3

IanT, there is some experimental versioning code around in unsupported land, have a look at WFS-V (WFS versioning) and geogit


3

Solved! ..by using refresh Strategy: 1.Intitalize: var refreshStrategy = new OpenLayers.Strategy.Refresh(); 2.Apply strategy to WFS-Layer: var POIs = new OpenLayers.Layer.Vector("Schneeampel", { strategies: [new OpenLayers.Strategy.Fixed(), saveStrategy, refreshStrategy], projection: WGS84, // empty style ...



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