Closed (outdated)
Project:
Openlayers
Version:
6.x-2.0-alpha10
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 15:37 UTC
Updated:
25 Nov 2021 at 00:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
zzolo commentedHi @orbmantell. Is there a JS error? (You can use Firebug for this). Also, have copied the OL library to that location?
Comment #2
orbmantell commentedthere is an error: ReferenceError: OpenLayers is not defined
attached is a screenshot of the error displayed as well as what the map looks like.
Thanks
Comment #3
zzolo commentedHey @orbmantell. Do you have a link to an actual page to look at? It seems like the library is not included for whatever reason, or maybe you don't have the path correct.
Comment #4
orbmantell commentedUnfortunately I don't have a link to a live non-working page. The site this page is part of is live so I have been doing all my testing in a localhost environment. The URL of the working site (using the OpenLayers-hosted source) is http://extension.oregonstate.edu/find-us
I followed the directions on /admin/build/openlayers as to what file to download, and linked to the un-archived OpenLayers.js file using a path I have triple checked for accuracy. I do not believe this is an error originating from my computer, as a coworker had the same issue I do when he attempted to set a custom OpenLayers source location on his machine.
Comment #5
harvlad commenteduse v2.9
Comment #6
zzolo commentedHey, sorry for the delay in this. Its an odd issue. Were you ever able to resolve this? If so, letting us know would be great. Closing for now, but feel free to re-open.
Comment #7
chicagomom commentedI am having this problem too when using either openlayers 2.10 or 2.11 js locally at sites/all/libraries/OpenLayers-2.11/ or /-2.10/. Local library version of 2.9 works ok, and the 2.10/2.11 versions do get loaded. Presets pointing to 2.11/2.10 image and css folders are seeing these folders and use them appropriately, but the map doesn't render and neither do the graphics.
Using Firebug, it notes an error in the console with both versions, at line 531 of openlayers.js:
TypeError: this.projection.getUnits is not a function
if(this.projection&&this.projection.ge...is.units=this.projection.getUnits();}
(v2.9 doesn't throw this error.)
Edited to add: using the Virtual Earth Street map.
Comment #8
ken-g commented