var map = new esri.Map("map",{logo:false});
<script type="text/javascript"> //Change the background image document.getElementsByClassName('logo-med')[0].style.backgroundImage="url(\"http://www.yoururl.com/to/the/image.gif\")"; //Keep the image from repeating document.getElementsByClassName('logo-med')[0].style.backgroundRepeat="no-repeat"; </script>
If you are trying to replace just the image it can be accomplished by the following code:<script type="text/javascript"> //Change the background image document.getElementsByClassName('logo-med')[0].style.backgroundImage="url(\"http://www.yoururl.com/to/the/image.gif\")"; //Keep the image from repeating document.getElementsByClassName('logo-med')[0].style.backgroundRepeat="no-repeat"; </script>
If you are trying to replace just the image it can be accomplished by the following code:<script type="text/javascript"> //Change the background image document.getElementsByClassName('logo-med')[0].style.backgroundImage="url(\"http://www.yoururl.com/to/the/image.gif\")"; //Keep the image from repeating document.getElementsByClassName('logo-med')[0].style.backgroundRepeat="no-repeat"; </script>
Thanks, Bailey. I cannot figure out where to insert it in the HTML file, though.
When the user clicks the logo it links to esri.com. How do you disable that, or better yet change the url?
esri.config.defaults.map.logoLink = "http://yoursite.com"
Martin, that is also on Utah's GIS Portal. That is only a portion of what needs to be completed, though, which only adds a custom hyperlink to the logo. I attempted what Utah's site recommends, but it only deleted ESRIs logo, but did not add mine.
I've got both the replacement logo and url working. Make sure you post the (3 lines of) code in your init() function after the map object is created.Three lines of code? Not sure which code you are using (perhaps a combination of what Bailey and yourself posted)?