I am hoping someone can provide me with some help on this. I think it is probably easy but I can't seem to figure it out. I have created a content type (Site) that I am storing lat/long points in. I have created a map of all the sites using a data view, map preset, and map view (http://permafrost.gi.alaska.edu/sites_map). What I am having problems with is creating a map on the individual sites page (ex. http://permafrost.gi.alaska.edu/site/ivotuk-4-moss) that zooms into that site. I have created a different data view in an attempt to create a new layer that could be zoomed to but I can't seem to figure out how to pass it the current nid as an argument. It looks like using permalink might also be an option but I can't figure out how to implement this either.

Thanks,
Bill

Comments

tmcw’s picture

The nid argument needs to be added to the OpenLayers Data display and should automatically pull from the URL. The Permalink control isn't really viable in this case, since there's no way to integrate with the rest of Drupal. More information would be needed to debug thoroughly.

wlcable’s picture

Thanks for the response. It turns out I didn't have the argument correctly configured. I hadn't see the option that if you select "Provide default argument" it gives you the option of pulling from the URL.

tmcw’s picture

Status: Active » Closed (fixed)

Great, closing.