I have
Views 6x-2.6 with Views UI etc
Openlayers 6.x-1.0-beta3 alongwith ALL the Openlayers modules such as Openlayers Behaviors and all of the other openlayers modules
Others like CCK etc
My Drupal version is the latest 6.14
When I create a blog or any node I can add WKT field as a point/tooltip (using pencil tool) and the marker shows up okay in the node teaser and node body well -
But when I want to see a composite view of all the various locations from where various nodes were created ( like this http://sandbox.zzolo.org/openlayers-views-example )
all that I get is a blank map. --> Please kindly see http://img187.imageshack.us/img187/485/openlayersviewsunableto.gif
I have enabled the tracker view with Style: OpenLayers and
Map Data Sources: other lat/lon point
Latitude Field: I have chosen Type. What to choose ?
Longitude Field: I have chosen Type. What to choose ?
Map preset is default map but I have tried with yahoo map also with yahoo api keys.
I have selected declutter and/or cluster or none in various attempts. What to choose?
To test whether I am okay I tested with another module - gmap. Things worked there just out of the box with a composite views map showing markers/tooltips on various parts of the map as expected BUT I want to use services other than that of google's.
Openlayers module seems fantastic and I see lot of people have got it going but I am
frustratingly stuck at that I am unable to generate a Views like http://sandbox.zzolo.org/openlayers-views-example
Any help. any guiding kindly ? I read advanced help but of no help. Is it possible to provide an export of the Views used in the demo site? Anything else I need to do?
| Comment | File | Size | Author |
|---|---|---|---|
| openlayers-views-unable-to-.gif | 89.95 KB | kaakuu |
Comments
Comment #1
phayes commentedYour problem is here:
You need to add your openlayers WKT field to your view. Add field and then content->NAMEOFYOURFIELD
Then you need to select 'wkt' under Map Data Sources and then select your field.
Comment #2
kaakuu commentedThanks Phayes. After posting this I did do that - added a field labelled arbitrarily as 'hhh' - an openlayers wkt fileld, added this to a content type, added this to Fields under Views. Under Data Source I added
Latitude Field: hhh
Longitude Field: hhh, hhh being the openlayers wkt field
BUT I cannot see "wkt" option under Map Data Sources - all that I see is other lat/lon point and other well known text. Feeling so upset at myself :(
What is the version of Views and Openlayers at the demo site? Can someone kindly, kindly post an export of a working Views? I will request the develpers to provide a default views and menu link so that just like gmap a basic composite map showing locations of latest 'n' number of nodes can be seen just out of the box lke Gmap module. In the meanwhile, can some one have a glance below at the views I am using and point to the mistake, please?
Comment #3
kaakuu commentedFinally after much tweaking I am able to show the spots on the map, but not yet the balloons.
I keep on working and if solved, I think this can be marked close.
@phayes, thanks. I had to choose the "other well known text" option. Was I right?
Comment #4
phayes commentedOh I feel really bad we should have better documentation. WKT stands for "well known text" -- oi!
Comment #5
kaakuu commentedThanks Phayes. At present the documentation page link from the module page does not lead to any well documented book page like some other modules. Openlayers is otherwise pretty intuitive except a few blocks I suppose.
At present when I hover on a spot/point on the map I can see the Title only or Author only or any single parameter. Is it possible for you to kindly guide to a page that has some details on how to create nice pop-up/balloons on hover/click as shown in the demo page?
PS : How can I easily change the spotter/marker on map, that is the small orangish circle to any chosen png ? I read the advanced help but seem not to find. May be ( like another map module) it can be a configuration option to have either css or uploadable png for this ? Till then can you kindly say what to change so that the spotter circles can be made larger/smaller/different colored ?
Comment #6
jessia commentedI am also having problems.
I'm using a CCK field for locations on blog entries, image nodes, and videos.
In my view, I've set the Location CCK Field as the data source. It seems fairly intuitive.
And I get a nice, empty map.
I'm showing all results, but I've tried putting a number on it too. Can someone tell me what I'm doing wrong?
(slight difference from OP - using Views 2.8)
I've installed on another site, and on that one I can't even get the map to show--same settings. :(
Comment #7
phayes commentedCould you please try the 1.x dev version and see if you have the same problem?
It might be time to roll another beta from dev.
Comment #8
jessia commentedUpgrading to the dev version fixed my problem. Thanks!
Comment #9
zzolo commented