No Map Displayed when Attempting to Create New Content
vanderlip - November 16, 2007 - 08:22
| Project: | cck_map |
| Version: | 5.x-3.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I followed the install instructions and entered by Google Maps API Key. When I try to create new content, the Marker Title and Marker description fields display, and there is space for the map, but no map for users to pin. In Firefox (Firebug), I see the following error:
GMap2 is not defined
[Break on this error] this.map = new GMap2(document.getElementById(prefix +"mapArea"));
Any ideas? thanks!
-dennis

#1
Dennis,
I believe this is caused by a bug effecting the google maps javascript from being properly included, which does not effect the version of drupal that this field was developed on. I will be patching this later tonight.
Thanks,
Brad
#2
Dennis,
I believe I have fixed the error that afflicted you, as well as a handful of other bug fixes. I recommend grabbing the new version and seeing if you are still experiencing the same problems.
Thanks,
Brad
#3
just testing the module, and i confirm that the blank space and no map showing, updated to the latest bug fix version as recommended but the issue seems withstand
Drupal v 5.3
screenshot attached -
note: on the screengrab note 'location' field is the name of the cck_map field not to be mistaken with the 'location.module'
#4
Thanks for your quick response and efforts. I downloaded the latest version and installed it and the issue in not yet solved. I still see the same thing as Ica in Comment #3.
#5
Can either of you attach the html source output of the page you are having the error on? It looks to be a case of javascript files not including correctly. That being said I'd love to see the html output so I know exactly what the issue is.
Thanks,
-brad
#6
I have attached a text file. Thanks again for looking into this.
#7
Alright, I just committed a new version. Give that a go if you guys don't mind. I think **crosses fingers** those issues are straightened out.
Thanks again for the feedback and helping me get this fixed.
-Brad
#8
Sorry Brad, I am still having the same problem with the new version. I also installed the new version from scratch on a testing site that I have and that too results in no map presented. Drupal 5.2 on Linux. I get the same error as indicated above.
-dennis
#9
Confirming this issue on the new version.
Should it be possible to get the addrees info from the gmap macro also into this module, so it builds node-maps from addresses instead of longitude etc..?
Thanks for fixing this in advance.
greetings,
Martijn
#10
subscribing - thx!
#11
Alright guys, first of all let me say thanks for working with me as I try to sort out some of these issues. Secondly, I have released a new version which I once again believe should fix the problem you guys are experiencing. If you guys could grab the new version and let me know if it works out for you that would be great. There is also a widget options change, so for it to work properly you may have to remove the maps field you were using previously from your content type, and add a fresh one.
Thanks again for your patience,
Brad
#12
Hi Brad,
I will try the new version and give you feedback later this week.
Would it be possible to integrate with the keys_api.module. This way you can set the google map keys on one place?
Thanks for working on this!
greetings,
Martijn
#13
Brad -
The new version did the trick for me. Appears to be working fine now! Thanks a lot for your quick work!
Thanks -
Dennis
#14
hi, with the last version 5.x-3.2-1 the map and the marker works
appreciate to your work
it has advantages with another similar module gmap_addons's gmap_cck
http://drupal.org/project/gmap_addons
main disadvantage of gmap_addons's gmap_cck is unlike this module requirement of gmap.module as the name suggests
http://drupal.org/project/gmap
advantage of cck_map module that it does not required gmap.module therefore its light load for sites just need map for a location -without further node/user location etc.
also cck_map has multiple marker settings.. its great
if you consider, some further settings enrichment would be great too, such as
options on filed settings
- to choose one of or multiple /full[MAP] [SATELITE] [HYBRID]
- Small/Big/No zoomin bar options
- google's expanding overview map on the right corner
as an example on the options on gmap_addons's gmap_cck
cheers
#15
Hi,
Thanks for updating this module.
I can only type in the Longitude and Latitude, right? Is this the behaviour of this module?
With map_location.module I can also get the map with typing in the Address.
Are you familiair with this module? It is still in Patch as a add-on to Location: http://drupal.org/node/165040#comment-589585
I attach the GUI from this module in a picture to show you what I am talking about.
If you get in contact with these guys, may be your multiple marking settings, and there GUI can be combined?
Greetings,
Martijn
#16
The only feedback i've received since releasing the new version is that this issue has been resolved. so I'm marking this issue as closed for now. if it pops back up again we'll reopen it.
Martijnhaan: it seems your discussing a separate issue, and it should probably be dealt with as such. but to give a brief answer, this module is primarily a GUI for adding points onto a map. you do not type lat/lon points, or addresses(yet).
thanks,
-brad
#17
Hello Brad
I am having troubles with the map display on the node once created, it seems a repeat of some of the issues previously fixed. I have attached the page code for reference, it is Drupal 5.5 and the very latest version of cck_map. Please help as deadlines are fact approaching!!
#18
I have the same issue as the previous post. I have drupal 5.5 with the latest cck_map. i have 3 nodes with maps, and my latest on stoped working. it was ok when i created, but later i changed the map size and from that point i can't see the map.
#19
I've attach my html sources, i hope it will give more infromation for the developers.
Both files are from the same site. One node type shows the map, the other not!
#20
I have a similar issue. Does it have to do with adding the "mapArea" element to the themes CSS file? Can you explain how to do this?
#21
similar results here - with a twist (should I post as new issue?)
D5.3,
cck_map-5.x-3.3
see http://drupal.org/node/241826 (saves typing), take look at the SCREEN SHOTS of my sources for "see map", "no-see map"
I HAD to attach as images, because if I attached as txt, even though I see others have successfully done so, even my "see map" source, copy/pasted directly to txt, after I uploaded attachment, when viewed in browser (FF), would create the same multiple js loads as seen in "no-see map" source.
In other words, the attached file below is a copy/paste of http://drupal.org/files/issues/node-xx_see_map_source.png
weird, huh?
click on it to view/load in browser = multiple js var field_maplocation0markers AND $(document).ready(function loads
right-click/save, then open to view = "see map"/one load each!
any clues?
Thanks in advance
#22
ok, you guys are going to think I'm nuts -
honest to God, I checked my post to make sure it was behaving as I described, upon FIRST time view of the txt file in browser, I got what I described - multiple loads
but upon checking it again, get as the text file reads in notepad - one load each script - baffled here!