The Mapstraction CCK module provides a submodule called Mapstraction Views. This submodule implements the Mapstraction CCK module integration with Views . Now you can select the Mapstraction Map style and show geographic information in a Mapstraction map. This submodule is based on the implementation of the Mapstraction module. This is a very basic version of the module that will be improved through your comments and suggestions.

Comments

sano’s picture

I am trying to configure a Mapstraction CCK view. Is there any documentation for this? Another option would be to put a block (or a page) on the demo site containing a Mapstraction CCK view and allow registered users to take a look at the Views screen to see how it is configured. I made some feeble attempts like:

http://www.mediafire.com/imageview.php?quickkey=n2t0ujtwmdm

Can't figure out how to make it work.

Thanks.

plopesc’s picture

You can see how looks a Mapstraction CCK view in this page.

To configure a Mapstraction CCK view, you only have to select the Geospatial fields which will be displayed in the view, and check it then in the View style configuration page. If you want to display a field in a bubble associated to markers, you have to select this field in the bubble selector of View style configuration form.

sano’s picture

My mapstraction cck field is called field_track_map. I selected that field in the Fields section of the view page. I think that is what this sentence is instructing me to do: "you only have to select the Geospatial fields which will be displayed in the view". Then - in the same sentence I read: "...and check it then in the View style configuration page..." What is "View style configuration page"? You mean "Style" hyperlink in the "Basic Settings" section? If so, something is not working because I do not see a place there where I could check my geospatial field - as I am instructed to do. This is what I see there:

Calendar
Grid
HTML List
Table
Unformatted

By the way, just selecting my geospatial field in the "Fields" throws an error:

user warning: Unknown column 'drup_node_data_field_track_map.field_track_map_geo' in 'field list' query: SELECT node.nid AS nid, AsText(drup_node_data_field_track_map.field_track_map_geo) AS field_track_map_geo_astext FROM drup_node node LEFT JOIN drup_content_field_track_map node_data_field_track_map ON node.vid = node_data_field_track_map.vid LIMIT 0, 10 in /my/directory/public_html/nabezky/sites/all/modules/views/includes/view.inc on line 771.

sano’s picture

Well, I found out that I had the "Mapstraction Views" component disabled for the "Mapstraction CCK" module - nice. So I turned that on and now I can see the Mapstraction Map style in the list:

Calendar
Grid
HTML List
Mapstraction Map
Table
Unformatted

However, I still see the error mentioned above. I guess I will file this into the module issue tracker.

chrsnlsn’s picture

It would be great if we could pass the mapstraction cck map the latitude and longitude and icon for elements to show on the map like the mapstraction module does. All of my info is being imported and I am using location to generate the lat and long for each node. This would be easier than trying to generate wkt fields for all my data I think, unless there is a way to auto gen wkt fields from an address?
Thank you,

web Kreator