| 34 | | try{new OpenLayers.Map();} |
|---|
| 35 | | catch(e){ |
|---|
| | 34 | /* |
|---|
| | 35 | `_OPENLAYERS_SFL_` is a flag indicating this file is being included |
|---|
| | 36 | in a Single File Library build of the OpenLayers Library. |
|---|
| | 37 | |
|---|
| | 38 | When we are *not* part of a SFL build we dynamically include the |
|---|
| | 39 | OpenLayers library code. |
|---|
| | 40 | |
|---|
| | 41 | When we *are* part of a SFL build we do not dynamically include the |
|---|
| | 42 | OpenLayers library code as it will be appended at the end of this file. |
|---|
| | 43 | */ |
|---|
| | 44 | if (typeof(_OPENLAYERS_SFL_) == "undefined") { |
|---|
| | 45 | /* |
|---|
| | 46 | The original code appeared to use a try/catch block |
|---|
| | 47 | to avoid polluting the global namespace, |
|---|
| | 48 | we now use a anonymous function to achieve the same result. |
|---|
| | 49 | */ |
|---|
| | 50 | (function() { |
|---|