Closed (fixed)
Project:
Location
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
8 Nov 2011 at 03:11 UTC
Updated:
1 Jul 2012 at 05:41 UTC
I'm sorry, this is probably answered but I can't seem to find it.
I have simple nodes with location info. I get the "See Map" link, but when I enable the Location Map block I do not see a map embedded in my nodes. No matter what I do.
Comments
Comment #1
vali hutchison commentedThe GMAP module creates a block to display the location map. It also creates a block showing all locations which is also very handy.
So to show the map for example got to: admin/structure/block and then find the Location map block and add this to your content area - then it will appear when you look at a node.
(changing status to support request as is not a bug)
Comment #2
amrit09 commentedI am trying to display a location map on my website.
I have enabled the Location Map Static Image Block and set as the content block on my location page. However, all I get is the link to mywebsite/locationmap.
I have tried to just use this page direct, but I dont seem to be able to set the other block settings for this page either.
Any ideas?
Comment #3
drupalina commentedI can confirm that this is a real issue. I have Location Block enabled and it should appear in the sidebar on node pages, but it doesn't. My nodes and my Profile2 (user profile pages) have Location CCK fields. In D6 the data entered in these fields (Street, City and Postcode) would be automatically shown as a marker on a GMap Location block. But in 7x this is not happening - the location block is not showing up at all.
In case of Nodes, you have to manually click the map to place the pointer (and that fills the coordinates) and only then the GMap location block will appear. But this is not how it should behave - as I said, in D6 it would just take the the Street address, City and Postcode information would locate it inside the GMap location block automatically - and that's what we should have in D7.
Comment #4
bcobin commented+1 on #3 - I could not have described the problem better. I'm reproducing a Drupal 6 site in D7 and I can verify Location isn't working as it should in D7. Any ideas? Thanks...
Comment #5
ankur commentedThe block you describe is actually provided by a gmap_location module, which is a part of the gmap module tarball.
The problem is that the gmap_location block referenced here is for displaying location_node locations, not CCK locations.
If you have a CCK location field, my suggestion would be to set up a view with a block display that uses the gmap format. It should use an nid argument.
Comment #6
bcobin commented@ankur,
Thank you for the prompt and helpful response - when I ran into problems here, I tried using Addressfield, Geofiled, GeoCode and OpenLayers, the combination of which seems to be working nicely so far. Insofar as GMap is considered a legacy module according to the project page, I suppose I'm not surprised.
Thanks again - hope this proves helpful!
Comment #7
drupalina commentedExcuse me - I'm going to reopen this because whether this is a Location issue or a Gmap module's issue, it does not work as designed!
@ankur , you're saying
That is not true. As I mentioned, if we enable the coordinate chooser for the CCK location field and let the end users to manually place the marker on the map, then the GMap block will appear okey. This means that the GMap block also works for CCK Location.
The issue here is that the GMap must be able to automatically place the marker from the data entered in "Street", "City", "Province" and "Postcode" fields of the location module, just as it did in D6! Now, either Gmap module is unable to read that data, or the Location module is not providing the correct data.
I went ahead and created a View block with Gmap and NID as argument and Content: Location field in fields. The result is the same: for those nodes where the marker was manually placed by the end-user both the GMap block and my custom View block appear okey (note this data is coming from CCKLocation field!). But for those nodes where the address is entered, but not the coordinate-chooser fields, both blocks do not appear. This suggests to me that the Location module is not passing the correct information to Gmap module!
But you claim that this is a GMap issue. Okey, let's see what the GMap people will say. But THERE IS a real issue here, because it works like a charm in D6 and does not work in D7.
Comment #8
drupalina commentedComment #9
lastar84 commentedI must agree with drupalina. I spent a few hours trying to figure out why the block was not displaying, what was wrong with my settings, scouring all of the potential errors before I came here and found this issue. I had entered marker data, and no block appeared. After I used the marker widget on the map and resaved the page, the block displayed. This is buggy.
Comment #10
LTech commentedI am using location cck field and gmat. I've set up the whole site and I've basically finished when I realised that if I delete an address in a ckk location field the marker on the gmat_location block doesn't go away. So the address is still showing on the map even though it is not part of the content anymore.
This is really not great. Do you think this bug will fixed or should I start again on my site and use a different module. Is 'get location' a good choice as I find openmaps really complicated?
Thanks
Comment #11
baghejari commentedhi this first my comment
i hope its usefull
i use flowing link to fix and it work for me
http://stackoverflow.com/questions/3178147/drupal-location-gmap-node-map...
in
modules\location module
and location.tpl.php