[OpenLayers-Users] Chicken in AddPopup
Gery .
gamejihou at hotmail.com
Fri Jun 1 21:53:16 PDT 2012
Hello Greg,
Thanks for the info, regarding to the popup style, time ago I was trying to modify my table style, for example adding color to borders. I'm using a MAP file (then templates) to do the popup. Where do I have to add the style? in my HTML template or in my main HTML web (where I have the popup code)?
Cheers,
Gery
> Date: Fri, 1 Jun 2012 14:32:03 -0700
> From: gregor at greeninfo.org
> To: gamejihou at hotmail.com
> CC: smaran.harihar at gmail.com; openlayers-users at lists.osgeo.org
> Subject: Re: [OpenLayers-Users] Chicken in AddPopup
>
> On 6/1/2012 2:16 PM, Gery . wrote:
> > Hello Smaran,
> > I don't really know what that means, but it is part of the code, if you
> > put for example "pig" or "dog", it won't work, trust me I did it and
> > didn't work =)
> > Cheers, Gery
>
> It's the ID of the created popup element, e.g.
> <div class="popup" id="chicken"> info </div>
>
> It works just fine to use other IDs in there. If yours didn't work when
> you used "pig" or 'dog" something else must have been broken when you
> changed it. :)
>
> This does mean that you can use CSS to style a specific popup. Give a
> different popups an id of "eventinfo" or "housingstats" and then:
> #eventinfo h1 { font-size:20pt; }
> #housingstats h1 { font-size:15pt; }
>
> It also means you can do DOM manipulations and jQuery stuff using that
> ID, e.g. $('#eventinfo table.tablesorter').tablesorter();
>
> --
> Greg Allensworth, Web GIS Developer
> BS A+ Network+ Security+ Linux+ Server+
> GreenInfo Network - Information and Mapping in the Public Interest
> 564 Market Street, Suite 510 San Francisco CA 94104
> PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org
> Web: www.GreenInfo.org www.MapsPortal.org
>
> Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120602/095a2e8b/attachment.html>
More information about the Users
mailing list