![]() String inputs wouldn't be coerced to a new type. Remove the image type so that icon-image and *-pattern properties still take a string. This could also be made private and not exposed to users so we can control when null is returned or not based on some heuristic about what behavior makes sense.Department of Transportation Office of Inspector General. This could be very confusing to users because the output might not always be obvious since the same operator could be used in two different ways with different return types. Department of Transportation - Office of Inspector General logo icon graphic U.S.This would allow us to conditionally use both coalesce and styleimagemissing.We wouldn't check to see if it's available and would just evaluate the expression and return the output. 'icon-image': would always return something like highway-shield-california. I think it should be similar than match expression existent. But it's not automatic, nor always can do it so faster.Īnother measure is to use match expression, to create some similar to default, but the inconvenient is that I need to specify to the style all the possible values of icon and, in fact, apply the changes faster as the option above. Nowadays I can create a new set of sprites faster I can to don't have this missmatch. Is there some way to put a default icon if mapbox cannot use the icon of sprite because it doen't exists? Design Alternatives The problem (and the motivation) is if "icon" in properties take a value that is not in the sprite, obviously, shows nothing. I'm trying to put in a map a serie of icon-image depending a property icon on tiles (or geojson). I think that simply didn't exists (sorry if yes.). I've searched in docs and in issues (quick search) and in google but I didn't find a possible solution.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |