WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
try to add maps.stamen.com layer to openLayer (2 posts)

  1. tillweber
    Member
    Posted 1 year ago #

    wp : Version 3.2.1
    geo-mashup: Version 1.4.9

    Hi all. I am working on my diploma thesis in communication design.

    I would like to use Geo Mashup in my project and try to present the maps of the maps.stamen.com (toner) . But my skills are only php, css, html, as2, as3 ...

    I installed the Geo Mashup Custom Plugin. I loaded a file called "custom.js" (attached). The Script is actually loaded on my live website (closed beta). Also the stamen script is loaded. In the worpress plugin i decided to chose the OpenLayer.

    So i take the code snippet from Stamen :

    // replace "toner" here with "terrain" or "watercolor"
    var layer = new OpenLayers.Layer.Stamen("toner");
    var map = new OpenLayers.Map("element_id");
    map.addLayer(layer);

    And i already contacted Dylan Kuhn an he said he would start something like this in there :

    GeoMashup.addAction( 'loadedMap', function( properties, mxn_map ) {

    // replace "toner" here with "terrain" or "watercolor"
    var layer = new OpenLayers.Layer.Stamen("toner");

    // Get the native OpenLayers map from Mapstraction
    var map = mxn_map.getMap();

    map.addLayer(layer);
    } );

    ----------------------------

    But now i got an error ... the error is in this line :

    var layer = new OpenLayers.Layer.Stamen("toner");

    something is undefined ...

    Could someone help me ? I just dont know how i can implement those beautiful maps for my diploma thesis :(

    Hope someone could help me ;)

    Till Weber

    http://wordpress.org/extend/plugins/geo-mashup/

  2. Weltenbummler Mag
    Member
    Posted 1 year ago #

    Hey,

    did you actually solve the problem? Because I'm working exactly on the same thing. And somehow I'm stucked.

    Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic