New answers tagged

1

There is a good explanation at the OSM wiki. It boils down to projecting EPSG:4326 coordinates to EPSG:3857 and working the X and Y coordinates of the tile from the X and Y coordinates in that CRS. The "generalized" way to provide tiles for any CRS is TMS.


2

i think the fact that we currently define an anonymous function to dicate what happens when users click on the control is why L.domEvent.removeListener can't be used to 'disable' it later programmatically from within a client app (more info here). it sounded like a pretty good idea to me, so i went ahead and submitted a pull request to add wrappers to esri ...


0

You are not adding vectorSource to the map. Are you? Review the OL3 WFS example. Change the url to use your server http://localhost:8080/geoserver/wfs and your layer PFT:PFT_pft_pft. It should look like: var vectorSource = new ol.layer.Vector({ source: new ol.source.Vector({ format: new ol.format.GeoJSON(), url: ...


0

I think a decision to use geographic data isn't a question of popularity, but a methodic question. Raster and Vector data are basic gis data structures, they can be stored locally, or web-based. WMS and WFS are something like raster-vector, but WMS is for serving raster maps or raster map layers, they are graphic representations of raster and vector data, ...


2

A similar question was asked before: Is it possible to have another CRS in the status bar than used for the map? and the asker finally wrote this piece of code: http://code.activestate.com/recipes/578692/ But I got stuck with it sometimes on startup. You might be better of with the new QuickMapServices plugin, which can deal with different projections far ...


2

Listen for pointermove event on map object: map.on('pointermove', function(evt) { // When user was dragging map, then coordinates didn't change and there's // no need to continue if (evt.dragging) { return; } // You can access coordinates from evt.coordinate now });


0

One thing you need to do is move the creation of the "Myposition" layer out of the callback and into an initialization function (possibly as part of startWatch() as long as you remove the layer in stopWatch()). OpenLayers might be smart enough not to recreate the layer if you use the same name (I am not sure which it does), but you might also be creating ...


1

No, OpenLayers.js is the code for the openlayers library itself. Somewhere your application loads a .js file that specifies the various layers and map functionality (it is also possible that this is done inline in an HTML file). Try searching through all the files in your application for the text "new OpenLayers.Map" and whatever file contains that text ...


1

The quick answer to the question is yes it is possible. You will need to construct an external SLD file, and store it on your server, then you will need to send a GetMap request that references that SLD in your request. So here for example is a GetMap request to a GeoServer WMS (generated through a web client using OpenLayers) GetMap to a GeoServer WMS ...


1

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 ...


2

By default point sizes are measured in pixels and so will change size as you zoom in and out of your map. The Symbology Encoding standard allows you to specify the size of your points (and other features) in map units which will remain the same real world size as you zoom in and out, that is they seem to get bigger as you zoom in like polygons do. You need ...


1

Have you tried Leaflet export as well as Openlayers? Leaflet export warps rasters as best it can to the right projection, but OL3 doesn't. Rasters are not qgis2web's strongest feature, and need more development: https://github.com/tomchadwin/qgis2web/issues/33 Edit: Another thought. Make sure your project is in 4326, check "Match project CRS", and try ...


3

QGIS is a desktop program, you could create a project file with the WFS/WMS layers then modify the xml of the QGIS project file to load up in the extent that the Open Layers map is in. Export the user drawn layer to json and then they can load that in a print. But that relies on the user having QGIS. Alternatively see the answer to this question and modify ...


1

A WMS request returns an image that is generated on the server so the CQL filter must be executed there. If you have a supported query then GeoServer will pass the CQL filter down to the PostGIS (or other) database for further speed savings (unless it's Oracle when it may slow down :-( ).


0

Your map and your WMS layer are projected in Web Mercator (EPSG:900913). Therefore, it is normal that your WMS url bbox are 15028131.255,-5009377.085,20037508.34,0 instead of 15.255,-50.085,20.34,0. So I cannot see the problem. Is your WMS working properly? What is the result of your mapserver queries like: ...



Top 50 recent answers are included