Tag Info

New answers tagged

0

No, there isn't any JS or CSS function/setting that can do this. Nor Openlayers can. If you want to make things (move/zoom) faster, as I understand, the tiles (images) have to be cached on client side, in your case, each visitor (mobile) of your website. Now, the only reasonable possibility is if you already know where your visitor is going to move, like a ...


0

I suggest you to use MapProx (http://mapproxy.org/) which does what you need. Alternatively, see this answer which develops your procedure a bit further: How do I create a mapserver config file for tiles downloaded from WMTS service? .


0

for resolve the problem of black areas is necessary to proceed this way: 1) create a virtual mosaic of the images with the param -vrtnodata 255: gdalbuildvrt test.vrt -vrtnodata 255 *.tif this add a white background to the mosaic see this explanation: http://lists.osgeo.org/pipermail/gdal-dev/2010-January/023032.html 2) download the correct prj file from ...


0

I've found a working solution based on openlayers 3.7 i have explained the solution in this post: https://groups.google.com/forum/#!msg/ol3-dev/FQRup_N1Ess/tF-6CyE35_UJ


0

I guess I found a solution to get the number of tiles that are to load. I hope this is reliable. var tg= (_tileWMS.getTileGrid()) ? ol.tilegrid.getForProjection(_view.getProjection()) : _tileWMS.getTileGrid(); //if you do not use default tileGrid var z = tg.getZForResolution(_view.getResolution()); var ...


0

From my knowledge, your best option is use Tilestache. http://tilestache.org/


0

You can use the Select by Attributes tool to select all of the raster features inside the shapefiles. Then right click on the raster in the Table of Contents and go to Data > Export to CAD. Best of luck to you!


1

This is the answer. Sometimes you have to go through all the process of asking a question to understand the solution. JavaScript: /** * Converts spherical web mercator to tile pixel X/Y at zoom level 0 * for 256x256 tile size and inverts y coordinates. * * @param {L.point} p Leaflet point in EPSG:3857 * @return {L.point} Leaflet point with tile pixel ...


-1

I would look into using the proj4.js library to transform your coordinates programatically using javascript. From the Github Readme: Basic usage: proj4(fromProjection[, toProjection2, coordinates]) eg: ``` var firstProjection = 'PROJCS["NAD83 / Massachusetts Mainland",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS ...


1

I'v found explanation here: https://help.openstreetmap.org/questions/13250/what-is-the-correct-projection-i-should-use-with-mapnik? And solved the issue by setting "input" srs-attribute for layer: <Layer srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" name="land"> And "output" srs for map: <Map srs="+proj=merc +a=6378137 +b=6378137 ...



Top 50 recent answers are included