Need help with the different map modules and especially Views
After a lot of strugling and looking at this site http://groups.drupal.org/node/19614 and this great video http://www.zacker.org/screencast-drupal-mashup-machine I have succeeded in making User location and Node location as you can see here http://www.tinemuller.dk/drupal/ but I can't figure out how to make the View from the video ONLY showing the markers from the Crime content type. Can someone help me with further tips and maybe videos, please?
What I'm going to achieve in the end is explained here http://groups.drupal.org/node/22120#comment-82526.


map modules & views
Hi, I'm not quite clear on the question. I'm assuming you've got a Gmap type view that shows all nodes, and you want to change it to only show nodes of type 'Crime'.
If that's the problem, then edit the view, go to the 'Filters' section, click '+' to add a new filter, choose 'Node: type' and click 'add', check the 'Crime' option in the list, then click 'Update', then save the view.
Regards, David
map modules & views
Thanks for trying to help but the Node and User location is NOT made by any View. When I look in the list of Views no view is made. It's really confusing to understand Views. I know they say that I should think of them as queries but I can't see the light.
Have any made a video about how to make a View using a map with markers and maybe custom markers and with a Permalink to this map? I can't figure out how to do this.
There is 2 ways to store
There is 2 ways to store location data, either via the user location & node location modules or via locations CCK. The latter makes a field available to views, user & node location don't.
I don't know how you can filter the types when using the user/node locations. I'd suggest try using 'location CCK' to add a field to the node type 'Crime' & combine that with 'Content profile' module to add location fields to user profiles.
Sorry it is all very confusing, but that seems to be how Gmap works at the moment.
Creating view is easy.
Creating view is easy. Create new view like this.
1. goto admin/build/views/add page and type the view name and click continue, then you redirect to view edit page.
2. In the filters section click '+' and add choose Node:Type click add, then choose your content type.
3. In the fields section add the fields that you want to show in the marker content.
4. In the basic settings section, click style value, choose GMap click update, then it will ask the settings like Macro, Marker handling, Marker / fallback marker to use. If you don't want default value edit those values.
5. In the left side choose page and click add display.
6. click Page tab. Goto Page settings and add path and menu details
7. Save the view.
8. Visit the path that you specified.
Then you can see the markers related to only that content type on the map.
Creating view is NOT easy :-)
I still can't get it to functioning. I have a menu now called Crime but without info. :-(
I have uploaded the csv file from the video here http://www.tinemuller.dk/drupal/crime_data.csv. Will you please try to make a map/view of this on YOUR site, please? It's from the video mentioned earlier http://www.zacker.org/screencast-drupal-mashup-machine. If I can get this to functioning and understand then I can start making a lot of great Google Maps API sites.
I have just discovered that if you scroll the map to San Francisco all the info is there but where should I change the coordinates for this map and the width and height if I only would have it for this Map?
http://www.zacker.org/screenc
http://www.zacker.org/screencast-drupal-mashup-machine video is showing Drupal 4.7. I used google Maps in Drupal 6.12, but that video is explaining clearly how to create view. I did GMap intergration at my organization. I don't have personal drupal site to show you sorry :(.
You can change the settings of the map at admin/settings/gmap page. You can set map view, zoom level, width and height also there.
admin/settings/gmap page
@prajwala wrote:
You can change the settings of the map at admin/settings/gmap page. You can set map view, zoom level, width and height also there.
But what about the next time I make another View from some other part of the World do I then have to change it here again? It can't be right.
admin/settings/gmap page
If you look at that page and scroll down to the 'Map Behavior flags' section, do you have the 'autozoom : Use AutoZoom' option checked?
That should automatically adjust the map shown to fit the selected locations.
AutoZoom checked did it
Fantastic - that did it. Now I have to figure out why only 10 markers are showed instead of about 400. In the View I have changed Items to display to 400 but it didn't solve it.
By default view will limit
By default view will limit the results to 10. Change that to unlimited.
It didn't help. And there is
It didn't help. And there is something completely wrong with the fields. Offense isn't showed. I'm about to give up. Why is it so hard to understand. Wish there was some more clearly instructions. :-(
I think I at last has solved it - what do YOU think? :-)
I think you would be better
I think you would be better off giving up using Node location & User location and trying Location CCK. Then you can use them as a normal field & make your own Gmap views.
Are you running into the limits of the modules, and this is the reason Location CCK was developed to give more control & integration with views 2.
There are ways to turn the user profiles into content types to help with the adding of location data (content profile) as I mentioned above.
My 2 cents.
I'm working with CCK and
I'm working with CCK and Views and it's functioning as you can see here http://www.tinemuller.dk/drupal/crime but it's not easy to understand.
I agree it is difficult, but
I agree it is difficult, but probably worth it in the end.
I don't know if this will help at all, I exported a view when I was figuring it out. It is an 'attached view', that gets added to the node view. I don't know if it applies to what you are doing, but it may worth a try.
http://drupal.org/node/386848#comment-1696524
I think the key parts are getting the Location Lat/Long via a relationship in the view and testing it using a table view instead of a Gmap style because you can see what the data looks like.
Good luck.
no need to change at
no need to change at admin/settings/gmap page. In the view style settings it self we can specify these gmap as a gmap macro. I don't know about drupal 4.7 but there is a setting in Drupal 6. You can create this macro using GMap Macro builder module.