By johnhelen on
Hi
I tried to set up Openlayer so that I can display location nodes in a default OpenLayers map for a while but had not have any result yet.
Here is my steps:
- Created a new View with Openlayers Style with "Map Data Source" is "Node Location". Now I have a default OpenLayer map in a page.
- Created a Content Type and add a "Location Field",
- Created some Location Nodes of this Content Type such as Paris, France or Tokyo, Japan ...
But I do not know how to config to put these "Location Nodes" into the OpenLayers map above
Could you please help me how to do that
Many thanks
john
Comments
I believe your problem is in
I believe your problem is in your use of the Location module. From memory, you can associate a location with a node in two ways using the Location module: via the 'Node Locations' submodule, or via the 'Location CCK' submodule. One is stored in the node itself, while the other is stored in a CCK field.
From the sounds of it, you're using the 'Node Locations' module to provide the OpenLayers map with location data, but you're using the 'Location CCK' module to associate location data with nodes. You should be able to fix this by editing the view to use a Map Data Source of 'Content: Location' instead (or whatever you called your location CCK field). Note, you'll have to add this field to Views' Fields section first.
Hope this helps!
thanks
Thank you for your help. From your suggestion and from "Query" field (when I click update View, I can see the created query), I understand how OpenLayers works inside Drupal.
Also, I am able to add different markers on the map