[OpenLayers-Users] Chicken in AddPopup
Greg Allensworth
gregor at greeninfo.org
Sat Jun 2 08:38:49 PDT 2012
On 6/1/2012 9:53 PM, Gery . wrote:
> 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)?
Typically I would put them into my website's HTML code as I would with
other elements. But either way could work; you may find it more
organized to have the popup-specific CSS inside the popup-specific HTML.
If there's a lot of CSS for your popup, there may be a small downside to
putting the CSS in the query template: the CSS code would be transmitted
to the client along with the HTML, adding extra download time. That may
be trivial, though; in an era of 1 Mbps being slow, what's 500 extra
bytes in a download?
--
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
More information about the Users
mailing list