css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

Demonstration of a function for removing a loading screen after map/feature services have been loaded to the map. If a service fails to load (error event), an error message appears. After the message is closed, the loading screen is removed.

I add a property (isLoaded) to the map/feature service object to hold a boolean for whether the service is loaded or not. I hook into the "load" and "requesterror" error events to change the value for the isLoaded property.


  1. No comments yet.

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.