I'm rather new to Drupal. I manage to get the map I want in a OpenLayers view. I followed the tutorial, the location data is in dedicated nodes (new CCK type, with only title, description, latitude and longitude).

Now I'd like to have this map in a standard page. I see two options: insert_view module or the OpenLayers filter.

  • The first option would be simpler, but my test makes it display "array"
  • The second option is probably smarter, but as far as I understand it links a "preset" without location points.

Anyway, I did not manage to make either of the two options work.

Could you please help me to choose the right way to do it, and to find how to do it?
Thanks a lot

Comments

tmcw’s picture

I assume that you're trying to insert a map into a page node, rather than making a map as a page (the latter would fill the entire page).

If that's the case, use filters. The insert_view module has a serious vulnerability, and map presets can include points - any map that you see on a site is a preset. The tutorial is a good place to start out for putting points on a basic map.

benoitF’s picture

Your statement about what I am trying to do is correct.

AFAIK the vulnerability of insert_view is that the inserted view is not executed with the rights of the user that actually request the hosting page node. I evaluated that, and I think I'm not concerned. I agree it would be better not to use insert_view.

I followed the tutorial. I do not see anything about filter.
I (maybe wrongly) understood that a preset is a configured display of a map, on which points can be put.

Thanks

zzolo’s picture

No, "points" are fine for filters. A filter just renders a map preset, and a map preset can have 1 or many data layers attached to it.

I don't think there are any handbook pages on filters at the moment.

benoitF’s picture

Thanks a lot. It works.
The problem was the filter was enabled in CKEditor, but not in FilteredHTML.

The way the preset and the view are linked is not very simple to understand. I imagined the preset is the map without points, and I've just realized I was wrong.

I will read the tutorial again, so as to better fix the concept in my mind... ;)

benoitF’s picture

Status: Active » Closed (works as designed)