Tag Info

New answers tagged

0

I just ran into this same/similar problem. What fixed my problem was to make the image large enough for the gdal2tiler to make proper tiles. I made my image evenly divisible by 256px, so this may have be necessary as well. I initially had a 16,128px wide image and was trying to create zoom levels between 0-7. The gdal2tiler worked as expected when I tiled ...


1

BruTile has a lot of breaking changes from v0.7.4 to v0.12 You will have to adjust SharpMap's TileLayer to reflect these.


1

You could try to set the tilesorigin and tilesize --> tileOrigin {OpenLayers.LonLat} x and y are the coordinates of the lower left corner (the “origin”) of the tile grid system new OpenLayers.Layer.WMS( "xxxxxx","url", {layers: 'xx:xxx', format: 'image/png' }, { tileOrigin: new OpenLayers.LonLat(-180, -90), tileSize: new ...


0

I had completed this activity using TileMill to generate background transparent tiles with the help of CartoCSS.


1

You can use QGIS software and its plugin called Qtiles to convert your shapefile into tiles. https://plugins.qgis.org/plugins/qtiles/. Another way for generating tiles is to use TileMill by exporting shapefile.


1

Buffers are now handled in the source project, not in the style project (in TileMill, one project controlled both data source and style; in MapBox Studio, they are now two different projects). So, assuming you have access to the source file, click on the label layer, and under the configure tab increase Buffer Size to a number half the width of your widest ...


0

I've been working on this exact same workflow, and would point out that you can use the MBTiles extension for Geoserver to serve the .mbtiles file directly, no need to unpack it. This has worked well for me, I just copy the .mbtiles file onto the server in the Geoserver data directory and then use it as a datastore. However, here is a little bit of ...


1

If you create xyz tiles with mbutil, you don't need GeoServer. Mapping libraries like OpenLayers and Leaflet can read the image tiles directly from the tile folder mbutil creates. For example, you create tiles in a folder called 'mytiles' and you place that folder in the root directory of your web server. The URL you pass to your mapping library to create ...


2

As of Jan 2015, I'm not aware of any open source implementation that fully supports every possible option in geopackage. The spec is authoritative (but likely to be updated) for implementation, so if you want to (or really don't want to, but still have to) write your own map engine, work from that. Look for a sane subset/profile, rather than trying to do it ...


3

The reason you are getting a "not well formed" error in console is because your tilejson file loads asynchronously, meaning the script continues to execute while the tilejson object is only partly loaded as an incomplete promise object. So when you pass your tilejson object to L.mapbox.map, you are actually passing a promise object (which it can't parse). ...


2

Last time I tried to pass tileJSON directly to the L.mapbox.map constructor, I ran into issues when mapbox.js tried to automatically load retina tiles from my non-mapbox tileserver. If you are using a retina device, could point to your problem. If not, might cause additional problems after you've fixed your current issue. Check your console to see if you ...


0

I would use getJSON() from the jquery library: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> var tilejson; $.getJSON('/path/to/your.json', function(data) { tilejson = data; });


2

Assuming that you want the actual intersection of the bounding box, then create a bounding box as a sub-query at the same level as the select from osm_admin, and take the intersection of this bbox with lg.geometry. Note the ST_Intersects also in the where clause. SELECT row_to_json(fc) FROM ( SELECT ST_AsGeoJSON(ST_Intersection(lg.geometry, ...


1

Form Here! it says .. SELECT * FROM {table_name} WHERE the_geom && ST_SetSRID(ST_MakeBox2D(ST_Point(-73.9980, 40.726), ST_Point(-73.995, 40.723)), 4326) Here, we use some of the same functions you have seen previously. The opperator, &&, always uses the bounding box of geometries, unlike ST_Intersects which uses the full shape of a ...


0

Based on my experience, there are Esri base map services that are designed for use offline. However, only an end user can do that from within the Collector app or an app created using an ArcGIS Runtime SDK. The developer cannot have these prepared ahead of time for deployment with the app. The app must have the user log into ArcGIS Online using their own ...


1

Setting bounds for the layer solves the problem. Because leaflet will not try to fetch tiles out of the specified bounds var southWest = L.latLng(13.02504085518189, 80.23609399795532), northEast = L.latLng(13.026849183135116, 80.23797690868378), bounds = L.latLngBounds(southWest, northEast); L.tileLayer('static/b18/{z}/{x}/{y}.png', { maxZoom:22, ...


0

Well, it seemed like the problem was just with the python bindings. I modified my script to feed the commands into the command line like so: #util.disk_to_mbtiles(out_dir, out_mbt) os.system("python {0} {1} {2}".format(path_to_mbutil,out_dir,out_mbt)) Now it works fine. UPDATE: Actually, I'm finding that once an .mbtiles file has been unpacked and ...


0

Leaflet works as designed. It's normal that it tries to download tiles when you zoom in and out. You have to set minZoom and maxZoom in the map options so that they match the zoom levels in static/b18/ folder You can also set maxNativeZoom in your TileLayer options (http://leafletjs.com/reference.html#tilelayer) so that leaflet expand existing tiles in ...



Top 50 recent answers are included