jywarren / plots

This is the old website for Public Lab; visit http://publiclab.org and https://github.com/publiclab/plots2 for the new website.
http://old.publiclab.org
12 stars 0 forks source link

fullscreen version of maps in archive, esp. for embedding and mobile device use #79

Closed jywarren closed 12 years ago

jywarren commented 12 years ago

using new openlayers 2.11 or leaflet...

jywarren commented 12 years ago

Trying to get this to work at:

http://publiclaboratory.org/map/gowanus-brooklyn-ny-ir/2012-2-13?fullscreen=true

function phptemplate_preprocess_node(&$vars) {
  if (module_exists('path')) {
    if ($_GET['fullscreen'] == "true") {
       $vars['template_files'][] = 'node-map-fullscreen';
    }
  }
}
jywarren commented 12 years ago

Basing this on a combination of

http://drupal.org/node/117491 http://drupal.org/node/139766 (for pages, but has Drupal 5/6 variants)

Not getting it to work though.

jywarren commented 12 years ago

http://dev.openlayers.org/releases/OpenLayers-2.11/examples/mobile.html shows the OpenLayers 2.11 mobile interface example

jywarren commented 12 years ago

test: http://archive.publiclaboratory.org/download/gowanus-leaflet.html

jywarren commented 12 years ago

http://archive.publiclaboratory.org/leaflet/index2.html?tms=http://mapknitter.org/tms/lone-rock-pond/&lon=-73.0733&lat=43.96055&zoom=18

Try that! If it's no slower than this:

http://archive.publiclaboratory.org/leaflet/?tms=http://mapknitter.org/tms/lone-rock-pond/&lon=-73.0733&lat=43.96055&zoom=18

then I think we're ready to go with this. I can add it to archive pages as the embed code, and also to MapKnitter, actually.

gonzoearth commented 12 years ago

its fast! (the top link)

jywarren commented 12 years ago

haven't been able to get it to show as default yet. more soon.

gonzoearth commented 12 years ago

one bonus feature might be a button for: zoom to fit/refresh

jywarren commented 12 years ago

Ok, google by default is working. Ill be adding embed codes to plots and mapknitter soon. On Feb 23, 2012 1:32 PM, "stewart long" < reply@reply.github.com> wrote:

one bonus feature might be a button for: zoom to fit/refresh


Reply to this email directly or view it on GitHub: https://github.com/jywarren/plots/issues/79#issuecomment-4142158

jywarren commented 12 years ago

Resolved with addition of embed codes in map pages; fork of embed iframe code at: https://github.com/jywarren/plots-leaflet-viewer