Change marker icon in geoJSON using sheetsee.js and mapbox - javascript

So, this guy created a JavaScript function to change marker icon of geoJSON in mapbox map.
I tried to apply his function for my map, which is generating geoJSON from a Google spreadsheet using sheetsee.js and mapbox/leaflet. I want to change default grey icons for my own image but my re-writing attempt of his function to my map didn't work.
I'm not very skilled in JavaScript so I would be very glad for any hints what I did wrong.

Related

react google maps render custom html on map

I'm using #react-google-maps/api ^2.12.1 in my react project. I want to create an interactive HTML component as a marker on the map. Still, on every documentation of google maps, I only find how to change a marker icon to set as a static icon image or how to set a label text, but not how to add an HTML component to a specific coordinate on the map. Could anyone help me?

adding popup on features in leaflet geojson-vt

I have a map where i used the leafet-geojson-vt plugin (https://github.com/brandonxiang/leaflet-geojson-vt/tree/leaflet1.0.0) to draw GEOJSON data in a canvas layer with geojson-vt.
I'm able to add the layer to the map, however, I don't know how to add popups on click for each polygon/tile/feature in the layer. I've tried searching for examples but cannot find ones using the geojson-vt plugin.
How can I add such functionality using the example in the link above?
Any help is appreciated.

How to translate marker on a geoJSON line in map box gl js using javascript

I want to translate a marker on the click of a button on a geoJSON line in map box gl js.
I searched a lot but failed to find even a small example which can help me start.

how to highlight markers on click in mapbox

I'm doing a mapbox project, where I have a list of projects on the right side of the screen. Each time I click on the list of a project name, the map will zoom to the location of the project.
I imported the markers to mapbox and used mapID to show them on the map.
Now I want to highlight the marker for each project that I click on. The mapbox highlight examples are based on geojson or csv, but I imported the markers from mapbox editor. Can anyone show me how to do the highlight?
The code will be generally the same: see the L.mapbox.featureLayer documentation: instead of using setGeoJSON or loadURL like the examples do, initialize it like L.mapbox.featureLayer('mapid'), replacing 'mapid' with your mapid.

Google Maps v3 marker with icon and image

I'm trying to add markers on my Google Maps V3. I want to have similar markers as on Foursquare, where they join an icon and image (with JS) and create one big marker.
Does anybody know how to accomplish this?
Rich marker perhaps?
Rich Marker v3
PS. the copy of richmarker.js from here worked better for me

Categories