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

Use Custom Marker Error #405

Open
jeannettestrand opened this issue Aug 16, 2018 · 7 comments
Open

Use Custom Marker Error #405

jeannettestrand opened this issue Aug 16, 2018 · 7 comments

Comments

@jeannettestrand
Copy link

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

@scott2b
Copy link
Member

scott2b commented Aug 20, 2018

Is this error being produced in the editor or in the published storymap? If it is the editor, is it happening at storymap.knightlab.com, or is this specific to a localized development environment?

@scott2b
Copy link
Member

scott2b commented Aug 21, 2018

I am not sure if this is the same issue @bysimeon but it does seem like custom icons are broken in local development. I suspect this may have just been an oversight in developing the new local storage mechanism for development.

@scott2b scott2b assigned ghost Aug 21, 2018
@scott2b
Copy link
Member

scott2b commented Aug 21, 2018

cf. Zendesk ticket # 5952

@LarsGeogecko
Copy link

Hi,

Are there any updates to this issue?

@jeannettestrand
Copy link
Author

jeannettestrand commented Sep 13, 2018

Is this error being produced in the editor or in the published storymap? If it is the editor, is it happening at storymap.knightlab.com, or is this specific to a localized development environment?

The issue is coming up with local development, configured as per the application README, and across different development environments as well.

@LarsGeogecko
Copy link

LarsGeogecko commented Sep 18, 2018 via email

@jeannettestrand
Copy link
Author

I am not sure if this is the same issue @bysimeon but it does seem like custom icons are broken in local development. I suspect this may have just been an oversight in developing the new local storage mechanism for development.

I think I have resolved this issue, it appears that in VCO.MapMarker.Leaflet.js file, the url for the custom-icon-image was not being assigned; I have put this change in a pull request, this is the fork: TileLayer.WMS feature #409 jeannettestrand/StoryMapJS-1

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

3 participants