Closed (fixed)
Project:
Openlayers
Version:
6.x-1.0-beta3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
23 Dec 2009 at 06:41 UTC
Updated:
27 Dec 2009 at 13:21 UTC
Hi,
I have installed the openlayers package, I have the geo-module installed, I have entered both the google key and the yahoo key and I am for a start using the default preset.
But, no map is showing. When I try to add a preset there is no example map, nor any small map for setting the center. At the content types cck-field there is no map either.
Any one who knows what I am missing?
Kind regards, Morten
Comments
Comment #1
netrom commentedI am really lost here and I would really appreciate if any one could help me out.
Kind regards, Morten
Comment #2
zzolo commentedThe problem is that we don't have any information to really help you. The following will help us figure your problem out.
* Do you have a link to the site?
* What browser are you using?
* Please install firebug to see if there are any Javascript errors showing up?
* Please check the Drupal logs for any PHP errors.
Thanks.
Comment #3
netrom commentedThanks for your response zzolo.
I have testet in Firefox, IE, Opera and safari and the maps are not showing in either of these browsers. So it dos not seem to be browser related.
Login information deleted.
I have Firebug installed and are mostly using it for CSS tasks. I am not sure how to check for Javascript errors. And I dont know how to check for PHP errors.
If you need more information just let me know.
Thanks again.
Regards, Morten
Comment #4
tinem commentedJust want to say that something is complete wrong with your coordinates. If you use the danish findvej.dk you get this with YOUR coordinates http://www.findvej.dk/-34.307144,149.765625 but if you search for your danish address you get this http://www.findvej.dk/55.6586,12.5234 which I think is the correct.
Comment #5
netrom commentedHi tinem.
I know that. It is because the demouser has pointed the location on the map to be in Australia but entered an address in Denmark. If you bypass the geocoder this will actually be possible. But for the time being it is not an issue for this thread. Anyway, thanks for your awareness.
/M
Comment #6
netrom commentedAddition:
I used Firebug and in the file: openlayers.js
in line 45 with the scripting: OpenLayers.ProxyHost = "http://raider/proxy/?proxy_url=";
I got this message: "Openlayers is not defined"
If it is any help?
/M
Comment #7
netrom commentedAddition:
If I change the source to: http://www.openlayers.org/api/OpenLayers.js
instead of: modules/openlayers/js/openlayers.js
it seem to work. How can I get it to work on the drupal path?
Comment #8
tinem commentedFirst I have to say that I don't use these modules myself but know how frustrating it can be when no one have time to help but I can say that the two files you link to don't look the same but maybe they shouldn't?
http://www.moowbi.com/modules/openlayers/js/openlayers.js
http://www.openlayers.org/api/OpenLayers.js
Comment #9
tinem commentedI'm not sure where it is that YOU don't see a map? When I login here http://www.moowbi.com/user/4/edit/account I have no problems seeing the map. Try deleting this and try again. And if you paste in the coordinates 55.6586,12.5234 it's showing correct.
Comment #10
zzolo commented@mortenrasmussen
There is your problem. You have a fundamental flaw with trying to include the openlayers file. The JS library should be the actual OpenLayers library, not the openlayers.js file that is part of this module.
If you go to admin/settings/openlayers, there should be pretty clear instructions on using the hosted version (http://www.openlayers.org/api/OpenLayers.js) or downloading the library and hosting it yourself. Please read these again, and let me know if they are confusing, so that we can work to make them more clear.
Comment #11
netrom commentedThanks zzolo. I believe that is the way to go, so I will work on this and get back if I get into "trouble". Right now it seems that IE is causing troubles (as usual) but I will look to see if this issue is tackled else where in the support forums.
:-) M
Comment #12
zzolo commentedAlso, I just released a new beta last night that you might want to try.