Hot answers tagged

10

Assuming your are using OpenLayers.Protocol.WFS, then you have something like this and you can provide a callback when you call the read operation on the protocol: The call back has an OpenLayers.Protocol.Response object. This object has an error property that will let you know of any errors. var protocol = new OpenLayers.Protocol.WFS({ ...


7

Assuming you use an ol.layer.Vector with an ol.source.GeoJSON you can use something like this: var vectorSource = new ol.source.GeoJSON({ projection : 'EPSG:3857', url: 'http://examples.org/fearures.json' }); var vectorLayer = new ol.layer.Vector({ source: vectorSource }); map.addLayer(vectorLayer); // show loading icon // ... var listenerKey = ...


5

There is the LoadingPanel addin: http://trac.osgeo.org/openlayers/wiki/Addins/LoadingPanel This could easily be altered to show a "waiting cursor" by altering the "minimizeControl" and "maximizeControl", removing the this.div.style.display = "none"; this.div.style.display = "block"; lines and adding: document.body.style.cursor='auto' ...


4

In ol3 version 3.10.0 things have changed. So is more clear than older versions but still more complicated than ol2. So for TILE (ol.layer.Tile) layers your code snip should look like: //declare the layer var osmLayer = new ol.layer.Tile({ source: new ol.source.OSM() }); //asign the listeners on the source of tile layer ...


4

Here's my suggestions: Try the map as just tiles. Is this slow? If so, use someone else's base map or use GeoWebCache to pre-generate tiles. Then all you should be seeing when loading only tiles is HDD usage and no or very little processing. If you're loading vectors, and that's slow, don't load vectors. Tile the vectors and query the database for ...


3

Did you save the corresponding R object as well? E.g.: # Download and save map image and R object library(ggmap) egy.map <- get_map(location=c(lon=30, lat=26), zoom=6, maptype="terrain", filename="~/Desktop/ggmapTemp") save(egy.map, file="~/Desktop/egy-map.rda") # Restart R or RStudio before running the code below library(ggmap) ...


3

I finally found a way to improve the loading speed in network analyst. First, I mention that I upgraded to ArcGis 10.1, but the problem was the same in this version. In order to have a very fast loading, it is better if you place all the data you will need in a single personal geodatabase .gbd file using ArcCatalog. Inside this geodatabase, create a new ...


3

You can find the following example useful: http://dev.openlayers.org/examples/layerLoadMonitoring.html Essentialy, the OpenLayers API gives you the layer events 'loadstart', 'loadend' and 'tileloaded'. When you register these events, you can 'hook' functions that, for example, can show a loading indicator.


3

You can use the loadstart and loadend events on the layer to handle this. This example (http://openlayers.org/dev/tests/manual/loadend.html) shows the basics of how to get it working.


2

The functionnality has been added recently, see these 2 examples : Tile load events , Image load events


2

could be your z-index? This works for me here .olControlLoadingPanel { background-image: url(../OpenLayers/theme/default/img/load.gif); left:45%; top: 45%; position: absolute; width: 250px; height:250px; background-position: center; background-repeat: no-repeat; display: none; z-index: 1000; }


2

The behavior of groups using the API is different than in ArcMAP TOC. This is how I understand your layerIDs: a. LayerID0 LayerID1 LayerID2 b. LayerID1 c. LayerID2 d. LayerID3 e. LayerID4 If you turn on group layer (a), then all sublayers will be displayed. If you turn off group layer (a) but turn on layer (b) or (c) then only layers will display. ...


2

I finally managed to resolve my problem. My solution was to load data into temporary spatial table on PostGIS server, delete all records from table and then insert all records from temporary table to database. DELETE FROM public.target_table; INSERT INTO public.target_table SELECT * FROM public.source_temporary_table; All you need is a table with ...


2

It seems that this functionality was recently added to the OpenLayers 3 examples. See Tile load events for a working example. Note the loading bar right below the map indicating how much it takes to load map tiles. You can also have a look at the code of the example and notice the use of tileloadstart, tileloadend, and tileloaderror events to handle the ...


1

For the moment it is not possible with OpenLayers3. See this post on the openlayers 3 dev mailinglist If you want to get this implemented you can vote for this issue at github project, or maybe start implementing it yourself.


1

GDAL is your best bet if you are looking for an open source solution. It only provides library functions and command line tools, but Oracle also distributes a simple GUI-based ETL that uses GDAL internally. This tool comes with Oracle Database 12c, but you can also download it in isolation from ...


1

I have also been looking for a software to test Oracle Spatial GeoRaster. I have found this solution from PCI Geomatics, which is not open source, but, at least it's free. You can check it here (registration needed): http://testing.pcigeomatics.com/Forms/RequestGeoRasterLoader.php I have registered myself and received a download link. However, I am having ...


1

It turns out that I have successfully loaded a publicly available point layer on my home machine (Ubuntu 13.04) fairly quickly. (I used the CamaResPt.shp layer provided by DC GIS). This leads me to believe that an issue is actually being caused by VMWare (despite my earlier suggestion). In any event, this question is no longer relevant in its current form. ...


1

What is the the output of SELECT ST_Metadata(rast) FROM gids.exampletable LIMIT 1 The -t flag of raster2pgsql dictates the number of pixels along the X and Y axes for each tile. For your -t of 100x100, each tile will have dimensions of 100 x 100 or less.


1

check out this answer, Jay Sandhu explained exactly why the slow loading showing up, and his solution worked on me! what used to cost more than 10 hours, now can be done in less than 1 minutes! so happy, can't thank him enough. In a word: just make sure your street shapefile has a proper spatial index before you create the network dataset. If not, create ...



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