This page describes how to include a OpenStreetMap with openlayers from http://www.openlayers.org

who already know this can easily write it here down

Write a marco called "OpenLayers" for example an save it in plugin/macro/OpenLayers.py with this content

import string, sys

def execute(macro, args):
    return macro.request.formatter.rawHTML("""

    <iframe width="600" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
            src="http://www.openstreetmap.org/export/embed.html?bbox=11.0729,49.46014,11.10449,49.47475&layer=mapnik&marker=49.46789,11.08500" style="border: 1px solid black">
    </iframe>
    <br/>
    <small>
        <a href="http://www.openstreetmap.org/?lat=49.467445&lon=11.088695&zoom=14&layers=B000FTFTT&mlat=49.46789&mlon=11.08500">Gr&#246;&#223;ere Karte anzeigen</a>
    </small>\n

    """)

MoinMoin: FeatureRequests/OpenStreetMap/OpenStreetMap (last edited 2011-07-05 10:30:43 by ThomasWaldmann)