configOptions.customlogo.image
//add a custom logo to the map if provided if (configOptions.customlogo.image) { esri.show(dojo.byId('logo')); //if a link isn't provided don't make the logo clickable if (configOptions.customlogo.link) { var link = dojo.create('a', { href: configOptions.customlogo.link, target: '_blank' }, dojo.byId('logo')); dojo.create('img', { src: configOptions.customlogo.image }, link); } else { dojo.create('img', { id: 'logoImage', src: configOptions.customlogo.image }, dojo.byId('logo')); //set the cursor to the default instead of the pointer since the logo is not clickable dojo.style(dojo.byId('logo'), 'cursor', 'default'); } }
.logo{ bottom:20px; cursor:pointer; position:absolute; right:10px; z-index:30; } .logo img{ width: 100px; border:none;
.map .logo-med { background-image: url("../images/map/logo-med.png"); cursor: pointer; display: inline-block; height: 36px; vertical-align: bottom; width: 200px; z-index: 30; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.