Skip to content

"icon-image": "{marker-symbol}-15" doesn't work for dynamic js markers when adding it to a satellite map #1878

Closed

Description

@gertcuykens

"icon-image": "{marker-symbol}-15" doesn't work on my own satellite raster map only streets-v8?

Activity

  1. changed the title [-]"icon-image": "{marker-symbol}-15",[/-] [+]"icon-image": "{marker-symbol}-15" doesn't work on my own satellite raster map[/+] on Dec 26, 2015
  2. changed the title [-]"icon-image": "{marker-symbol}-15" doesn't work on my own satellite raster map[/-] [+]"icon-image": "{marker-symbol}-15" doesn't work on a satellite raster map[/+] on Dec 29, 2015
  3. jfirebaugh commented on Jan 4, 2016

    @jfirebaugh
    Contributor

    The satellite-v8 sprite has no icons. If you want to use icons, you'll need to create a custom style in Mapbox Studio and add them as desired.

  4. gertcuykens commented on Jan 4, 2016

    @gertcuykens
    Author

    Hmm confusing, can you explain please?

    image

    image

    I expect marker icons added by this layer code "icon-image": "{marker-symbol}-15" to display on any background map, street, satellite or custom?

    For example

     map.addLayer({
            "id": "markers",
            "interactive": true,
            "type": "symbol",
            "source": "markers",
            "layout": {
                "icon-image": "{marker-symbol}-15"
            }
        });
    

    They are dynamically added? I can't see how static icons using map designer will work?

  5. changed the title [-]"icon-image": "{marker-symbol}-15" doesn't work on a satellite raster map[/-] [+]"icon-image": "{marker-symbol}-15" doesn't work for dynamic js markers when using a satellite map[/+] on Jan 4, 2016
  6. changed the title [-]"icon-image": "{marker-symbol}-15" doesn't work for dynamic js markers when using a satellite map[/-] [+]"icon-image": "{marker-symbol}-15" doesn't work for dynamic js markers when adding it to a satellite map[/+] on Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions