NUKnightLab / NUKnightLab/StoryMapJS
Use Custom Marker Error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 248
- Forks
- 61
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
From the StoryMap ReadMe:
"Images can now be used in place of map pins. Use image inside the location object and include a url to use. use_custom_markers also has to be set to true in the story map options. Same goes for custom icons except you need icon inside the location object and include a url to use."
The slide->location->image property is not working; slide->location->icon IS working. When requesting a custom image in place of map pins, the following error is thrown, with the following stack trace:
[Show/hide message details.] ReferenceError: url is not defined[Learn More] storymap-min.js:12:24806
_createImage
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:24806
_createMarker
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:23638
_initLayout
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:14681
initialize
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:14025
NewClass
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:5:11125
_createMarker
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:30845
_createMarkers
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:19983
_initData
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:22842
initialize
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:12:16114
NewClass
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:5:11125
_initLayout
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:13:10587
_onDataLoaded
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:13:14759
_loadLanguage
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:13:9690
_initOptions
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:13:9402
_initData/<
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:13:8642
ajaxSuccess
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:5:2268
$.ajax/xhr.onreadystatechange
https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js:5:7344
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the StoryMap ReadMe's custom marker example and reproduce the failure using a location image with use_custom_markers enabled. Trace the _createImage and _createMarker paths from the reported stack trace; the work is done when custom images render without the ReferenceError and existing custom icons still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100