linerfail.blogg.se

Maptiler leaflet shiny
Maptiler leaflet shiny








maptiler leaflet shiny
  1. #MAPTILER LEAFLET SHINY UPDATE#
  2. #MAPTILER LEAFLET SHINY SOFTWARE#
  3. #MAPTILER LEAFLET SHINY CODE#

Maps - extracted into $workingDirectory/mapsįonts - extracted $workingDirectory/fonts Tiles data - extracted directly into $workingDirectory MapTiler Data starter pack - zip containing: Tiles - mbtiles or geopackage data are uploaded directly into $workingDirectory Either drag and drop it in the list area or use the upload button. MapTiler Server supports direct upload from its web administration interface. Uploading content to a remote server can be annoying.

#MAPTILER LEAFLET SHINY SOFTWARE#

MapTiler Server is able to serve MBTiles and GeoPackage files generated by third-party software.ĭata generated by third-party software can be served only with a paid version of MapTiler Server. If you need to turn your geodata into map tiles, read this how-to for raster tiles and this how-to for vector tiles. MapTiler Engine is able to process your raster images and vector data into map tiles.

maptiler leaflet shiny maptiler leaflet shiny

When you have your area of interest selected, click on the Download button for all datasets you want to get - OpenStreetMap for buildings, roads, natural phenomenons, administrative boundaries, and much more, Contour lines for vector contours, Hillshade for raster hill shading, and Satellite raster tiles for color-toned satellite imagery.Īlternatively, you can click on the Custom region option to get areas that are not specified in our selection. Here browse by dataset or continent → country → region, alternatively, you can search for your preferred location.

  • Generate your own using MapTiler Engine.
  • I subset my ctry object by the click point and set that object as my data in the final addPolygons() function. When I clicked on a polygon, the result was still only a point rather than a polygon. I'm not sure that this is the solution, but I found a solution that works for my purpose! It appears that the problem was with my click event. I am really unsure of how this "Selected" id works. It was my understanding that the click event is what triggered click$id to be populated by the string "Selected." However, when I print click$id from the example markers, I get the location name.

    #MAPTILER LEAFLET SHINY CODE#

    I've continued to play around with my code a bit more and I think I have narrowed the problem down to the if(click$id = "Selected"). Again, I want to change the style of my polygons whenever they are clicked (in the example, I made the fill black). Warning: Error in if: argument is of length zero Stack traceġ: ERROR: connection reset by peer When I run the code, however, I get the following error: This code pretty closely follows the linked example with an attempt to work with shapes instead of markers. Proxy %>% addPolygons(fillColor = "black", layerId = "Selected") library(shiny)Ĭlick % removeShape(layerId = "Selected") Here is some example code with my shapefiles available for download here. While the example is very useful, I'm having problems translating the code from marker clicks to shape clicks. Similarly, in my app, I want my polygons to change styles when they are clicked.

    maptiler leaflet shiny

    In this example (code included in link), each marker changes styles and becomes yellow when clicked on, shown below: Here is the example that I've been working from.

    #MAPTILER LEAFLET SHINY UPDATE#

    I'm currently trying to figure out how observers work together to update the map when something is clicked. I'm attempting to create my first Shiny app using Leaflet.










    Maptiler leaflet shiny