Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gertcuykens opened this issue Dec 26, 2015 · 2 comments

Comments

@gertcuykens
Copy link

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

@gertcuykens gertcuykens changed the title "icon-image": "{marker-symbol}-15", "icon-image": "{marker-symbol}-15" doesn't work on my own satellite raster map Dec 26, 2015
@gertcuykens gertcuykens 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 Dec 29, 2015
@jfirebaugh
Copy link
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.

@gertcuykens
Copy link
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?

@gertcuykens gertcuykens 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 Jan 4, 2016
@gertcuykens gertcuykens 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 Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants