Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

useServiceSymbology seems to have no effect #12

@steveputman

Description

@steveputman

I switched to the new leaflet (and new leaflet.extras and leaflet.esri)--first using CRAN versions then moving to the github versions to see if that made a difference. addEsriFeatureLayer seems to be ignoring useServiceSymbology unless I am missing something here. Using a smaller version of the example in the package:

 library(tidyverse)
 library(leaflet)
 library(leaflet.esri)
#> Loading required package: leaflet.extras
 
 newmap <- leaflet() %>%
   addEsriBasemapLayer(esriBasemapLayers$Streets) %>%
   setView(-122.667, 45.526, 13) %>%
   addEsriFeatureLayer(
     url = paste0("https://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/",
                  "Heritage_Trees_Portland/FeatureServer/0"),
     useServiceSymbology = TRUE)

Created on 2018-05-11 by the reprex package (v0.2.0).

That yields:
image

But the drawing instructions on the service specify small red spheres for the markers (from the ArcGIS viewer):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions