Hi,
Thanks again for a wonderful module that I continue to enjoy working with. I think the semantic change in hook names is really good as well. I am trying to use polygons stored in WKT fields to create popups on click. I am using Geofield's WKT field, but am not sure I actually need it. Could probably get by with just a textfield storing the data. I then have a map view and a data view, which pull in my polygon content type and display them on my preset. In 7.x-2.0-alpha0 my polygon appeared nicely, but the popup would not appear. If I changed it to tooltip it worked fine. I found an issue some place with a similar report that suggested upgrading to 7.x-2.x-dev. Upon upgrading, I of course ran into the hook name change. I changed the hook_openlayers_presets to hook_openlayers_maps and all the errors went away. However, now my polygon will not appear at all. I tried using a text field instead of the Geofield WKT, but no luck. Any suggestions on my problem or whether or not I need to use Geofield at all. Thanks!
Comment | File | Size | Author |
---|---|---|---|
#8 | Creating and Editing Content Type - displays fine | 696.55 KB | g76 |
#8 | Frontend Openlayers Map - not working | 584.17 KB | g76 |
Comments
Comment #1
zzolo CreditAttribution: zzolo commentedHi @lkacenja. The first place to start is to look at your Views OL Data Overlay layer. In the preview now, there is a dump of the data that OL is getting. Make sure this looks right to you.
Comment #2
lkacenjaHi zzolo,
I appreciate the suport. Here is the data views is outputting:
Looks pretty good to me. I think this is the same output as before the version change. Thanks.
Comment #3
lkacenjaI think it was a views configuration problem. I think the upgrade must have changed some settings. Thanks for the help.
Just as a note: the geo field module was not necessary for simple polygon data overlays. A plain text area to store the WKT works like a charm.
Comment #4
khan2ims CreditAttribution: khan2ims commentedHi,
I am also having the same problem. The polygon shows as a marker instead of polygon area. I am using beta3 version and WKT formatter for my geofield. The output of the OpenLayers Data Overlay shows the correct format for the polygon. I have tried all combinations available in formatter, but can't get the polygon displayed on the map.
On my node display, I have set the display format as Geofield Map and there it shows the polygon properly. So, I guess there is some settings issue either in Views or the Layer display.
Can someone please help?
Comment #5
PolTested with OL 7.x-2.0-beta3: https://docs.google.com/file/d/0B7ugUjBv1lqHOUZ6RU9NcU44dUk/edit?ups=dri...
It works.
Comment #6
khan2ims CreditAttribution: khan2ims commentedHi,
My layers display screen is different from yours. See this projection screenshot for example http://screencast.com/t/2riCBxzG and I don't get projection EPSG:3857. I tried changing the base layer and still the polygon area shows as a marker. See http://screencast.com/t/y3oRLA8FJpxW
If I enable creation of layer in cck kml upload field here http://screencast.com/t/x6yKBxMbVye and attach it to a map and enable its layer, that shows up as a polygon. Strange.
Can I please get export of your views? I think I am using some wrong settings there.
Comment #7
g76 CreditAttribution: g76 commentedI have the same problem, and am fairly certain it's the views settings as well. I am using the dev version not the beta. If anyone has figured this out, let me know. Also if there is any info I can give to help troubleshoot this, please let me know as well.
Here is my data dump from the view:
Comment #8
g76 CreditAttribution: g76 commentedAlso posting screenshots
Comment #9
g76 CreditAttribution: g76 commentedI hope it's okay to reopen this.