maptiler | github mirror of Map Tile Cutter
kandi X-RAY | maptiler Summary
kandi X-RAY | maptiler Summary
MapTiler is graphical application for online map publishing. Your map can create overlay of standard maps like Google Maps, Yahoo Maps, Microsoft VirtualEarth or OpenStreetMap and can be also visualized in 3D by Google Earth. Only thing you have to do for publishing the map is to upload the automatically generated directory with tiles into your webserver. MapTiler is an open-source application, distributed under New BSD License. You can download the source code from repository at It is running under Microsoft Windows, Apple Mac OS X as well as on UNIX systems like Linux Ubuntu. For most popular operating systems are prepared also binary installers for end-users. Please check the project page of the MapTiler (The early versions and instructions for testing are available at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns an empty icon
- Returns the PNG data
- Gets the icon image
- Returns an icon bitmap
- Returns a bitmap
- Returns the unicode data
- Return the icon as an Image object
maptiler Key Features
maptiler Examples and Code Snippets
Community Discussions
Trending Discussions on maptiler
QUESTION
The old way of doing things in react-leaflet 2.8.0 was to use MapLayer
and withLeaflet
.
But now in react-leaflet:
MapLayer
andwithLeaflet
are deprecated as of version 3.
I'm trying to grasp the documentation for core: https://react-leaflet.js.org/docs/core-introduction
but the following doesn't work, I get
...The provided object is not a Layer.
ANSWER
Answered 2021-May-24 at 10:41You're using createLayerComponent
, but the routing machine is actually a control. Use createControlComponent
.
I also recommend making this as a separate custom component, as described in the docs, rather than putting it in a useEffect. The docs are hard. Feel free to read How to extend TileLayer component in react-leaflet v3? to see if that helps in understanding how to make custom components with react-leaflet v3.
Here's how you'd do it:
QUESTION
I'm looking to create simple basemap tiles that fill in the land, but leave the oceans transparent. The problem is that all of the data sources have the ocean with the polygons that create the water/land boundaries, so when making the oceans transparent it also makes much of the land transparent.
Does anyone know of a way to simple to do a land fill that will cover the coastline geographies. Essentially, I need the opposite of the water polygon fill. I've been using MapTiler to create and serve my tiles, but I'm open to whatever solution can solve this problem.
I believe the problem requires a data source that creates land polygons, rather than just the ocean polygons. I did find the Natural Earth land polygons, but I received an error from MapTiler that the dataset was too big. The 50m dataset was not fine enough detail.
...ANSWER
Answered 2021-Mar-05 at 16:02The only solution that I found that was satisfactory was to use QGIS and their map tile plugin, then to use the GSSHG dataset, which has high res land fill data. Unfortunately there is not a vector tile solution with QGIS, so creating the raster tiles can take quite a long time depending on the zoom level necessary. Zoom 10 took me over 2 days to complete on my Macbook.
QUESTION
We're running a react web app on AWS. The web app is hosted by an S3 bucket, and the API sits on elastic beanstalk. We use Cloudfront to consolidate this behind a single domain.
So far so good. The site loads, it can talk to the API.
The issue is, all API requests that reach our elastic beanstalk instance still have /api in the query string. This is fine for our API since we can control that, but we are deploying an instance of tileserver-gl, which does not allow us to configure the root url to serve from.
It doesn't seem like I can configure Cloudfront to modify the query string to chop of the first part. E.g. so that mysite.com/api/v1/users
would map to fj935hf02.elasticbeanstalk.com/v1/users
.
How have others circumvented this issue?
...ANSWER
Answered 2021-Feb-25 at 05:33Yes, CloudFront can do modifications like that through Lamdba@edge. Specifically you could look at the Origin request
function which can modify what is passed to the origin.
AWS provides also examples of such functions. One of the examples shows how you can work work with query strings.
QUESTION
The code to create the map:
...ANSWER
Answered 2021-Feb-15 at 10:16I think you're making up the name of the stater
layer.
I've downloaded (and uncompressed) part of the GADM dataset, and to see which named layers it contains, and then I've run ogrinfo
on it:
QUESTION
I am new to maptiler mapbox development , I download app from maptiler. now I am trying to build that app in to my android studio. but there are some errors. I am following it's ReadMe file . I put dependency MapboxGLAndroidSDK.aar
in to lib and also apply mapbox public token and secret token at appropriate place as per ReadMe steps . but still I can't run app due to following error:
ANSWER
Answered 2021-Jan-26 at 13:47finally I found a way to run my project. the conclusion is Mapbox updated it all library and split some. So I have to download all (.aar)Libraries from Maven repository and add it to my projects as library dependency to resolve issue regarding Mapbox library. recently I updated following library with latest version .aar file:
mapbox-android-sdk
mapbox-sdk-services
mapbox-sdk-turf
mapbox-android-telemetry
mapbox-sdk-geojson
mapbox-android-core
mapbox-android-gestures
If you have internet connectivity you can directly upgrade all the library. otherwise you can download from this link
QUESTION
I am new to Django and I have installed mapTiler server on my mac to use it as as map server. I have a django app that has an embedded folium map and I want to host my data locally (offline) through the application: After getting the information from the server [mapTiler server interface][1], I have put this part of code in views.py
...ANSWER
Answered 2021-Jan-21 at 07:25In case your viewer of choice is Leaflet (and according to the screenshots it is) - then you may need to either A) load raster map tiles or B) use LeafletGL.
So here are the two options:
A) To use raster tiles from MapTiler Server in Mac - in the current version 2.x you have to launch the software from Docker. This means to install Docker on your Mac first - https://docs.docker.com/docker-for-mac/install/ and then launch inside the container https://hub.docker.com/r/maptiler/server. We are working on a video tutorial for how to do that (check the MapTiler YouTube channel). In future version of MapTiler Server (perhaps 3.x) the raster PNG/JPG tiles for world maps are planned to be available directly from native Mac binaries.
B) The software you have installed currently on your macOS provides vector tiles (.pbf). These can be displayed in Leaflet with a plugin. See https://cloud.maptiler.com/maps/basic/leaflet-gl for details and an example - and replace the endpoint to load the map tiles. Instead of api.maptiler.com point it to equivalent endpoint on your localhost:3650.
Hope these tips help you to solve the problem.
QUESTION
jsFiddle is given here: here
I am new to Open Layers 6 and I am trying to display Vector tile data on a map based, more or less, on the example given in the Open Layers workshop.
The URL for the vector tile source supplied in the above example code was not working so I am using the Vector Tile Source described in this page. There I read that the source is defined using using the RGF93 / Lambert-93 (EPSG:2154) coordinate system and then, using Google, I found that coordinate system's definition and bounds on this page.
In the code that follows I am using the projection's definition and the projected bounds from that last link.
Even though data do appear on the map, they appear only on the farthest left side of the screen and only at zoom level 2 as shown below:
If I change the zoom level, nothing is plotted on the screen.
The code is given below (see also link to JsFiddle above):
...ANSWER
Answered 2020-Dec-22 at 11:35Just as some of the MapTiler examples use a TileJSON (see https://github.com/mapbox/tilejson-spec/tree/master/2.2.0) for raster tiles, there are also TileJSONs for vector tiles, for example the style https://api.maptiler.com/maps/basic-2154/style.json?key=7A1r9pfPUNpumR1hzV0k
contains the link
QUESTION
Is it possible in leafletjs to create a marker by clicking on a map, I already tried a lot of different things but nothing worked. I mean like create a click event in which a marker gets created.
This is my code, in this example i tried to make a function that creates a marker at a certain position if you click anywhere but my goal is it to create a marker at the position where you click. Im really new to this language and leaflet, so sorry if this code is stupid.
...ANSWER
Answered 2020-Dec-17 at 14:51Use the latlng from the event also use mymap
:
QUESTION
I just updated EJS
from 2.7.4 to 3.1.5
and some other packages in my project. Upon doing it, I can't access any of the webpages but getting an error instead. Apparently all of the pages throws the same error. Besides that I get VS Code errors in some of the code in my ejs template which didn't matter before. I mean the errors were there before I updated all the npm packages and the app worked perfectly fine.
This is the endpoint:
...ANSWER
Answered 2020-Nov-11 at 14:50Found the problem. Apparently the newer versions of EJS requires including partials of header and footer in a different way than before.
So changing this:
QUESTION
i'm looking for import GPX file inside my Leaflet map but when i try the site it respond with L.GPX is not a constructor i only have that in my head
...ANSWER
Answered 2020-Sep-25 at 15:52You have to load the plugin before you can use it:
Usage
First, include the Leaflet.js and Leaflet-GPX scripts in your HTML page:
As described, add the following line, in your header or before your script
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install maptiler
You can use maptiler like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page