[OpenLayers-Users] specifying options for OL class properties--when to use quotes?

Mike Quentel mquentel at rim.com
Wed Jul 23 12:42:35 EDT 2008


In some of the examples, when adding a Layer, I see some properties
(options) have quotes (single or double).  What is the general rule for
using quotes on the properties?  

Is this correct: 

{buffer: 2, gutter: 15, sphericalMercator: true, attribution: "some
label"}

or should it be this:

{'buffer': 2, 'gutter': 15, 'sphericalMercator': true, 'attribution':
"some label"}

Thanks.

Mike Quentel

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.



More information about the Users mailing list