/
Styling iShare Popups
Styling iShare Popups
The display name for a layer is included in the popup HTML as an H3 element. The display name is also used to create a popup-Display-Name class in the element that wraps the layer HTML.
E.g. a layer with display name Primary Schools would produce HTML similar to:
Example HTML
<div class="contentDisplay popup-Primary-Schools"> <h3>Primary Schools</h3> <div class="infoResult"> <p><strong><a href="http://link.to.schoola/" target="_top" title="Click here to go to the related web page">Primary School A</a></strong></p> <p> <strong>Admissions:</strong>Junior And Infants (4-11yrs) </p> <p> <strong>School Type:</strong>Community </p> </div> <div class="infoResult atLastResult"> <p><strong><a href="http://link.to.schoolb/" target="_top" title="Click here to go to the related web page">Primary School B</a></strong></p> <p><strong>Admissions:</strong>Junior And Infants (4-11yrs)</p> <p><strong>School Type:</strong>Voluntary Aided </p> </div> </div>
The new code can be targeted in CSS like this:
Example CSS
#atMyMaps .atPopupFeatureInfo h3 { /* general rule for layer titles */ } #atMyMaps .atPopupFeatureInfo popup-Primary-Schools { /* rule for primary school HTML */ } #atMyMaps .atPopupFeatureInfo popup-Primary-Schools h3 { /* rule for primary school title */ }
, multiple selections available,
Related content
Configure EduBase Classic Layers
Configure EduBase Classic Layers
More like this
Creating your MyCouncil page
Creating your MyCouncil page
More like this
iShare Solo Map Example Code - pre v5.4.0
iShare Solo Map Example Code - pre v5.4.0
More like this
Display a popup information box on iShare GIS
Display a popup information box on iShare GIS
More like this
Including a Feature List in iShare Solo - pre v5.4.0
Including a Feature List in iShare Solo - pre v5.4.0
More like this
Responsive iShare
Responsive iShare
More like this