This project is read-only.

openstreetmap in Orchard - where upload the txt-file

Topics: Administration, Core, General
Feb 18, 2012 at 12:44 PM


I want to set a Map on a page with the free Tool "" in combination with Openlayers.

With Openlayers it's possible to set Markers with Text for Point-of-Interests.


Where (Witch folder?) and how can I upload the txt-file (contains the information of the Markes) in Orchard?

Regards, Manfred



Feb 19, 2012 at 2:35 AM

Any folder in your module should be fine I suppose, provided the web.config file in that folder allows for the file to be served. Like for images or scripts.

Feb 19, 2012 at 10:33 AM

... I want to try it with the example: :

<div id="mapdiv"></div>
<script type="text/javascript" src=""></script>
<script type="text/javascript">// <![CDATA[
    map = new OpenLayers.Map("mapdiv");
    map.addLayer(new OpenLayers.Layer.OSM());
    var pois = new OpenLayers.Layer.Text( "My Points",
                    { location:"./themes/textfile.txt",
                      projection: map.displayProjection
    //Set start centrepoint and zoom   
    var lonLat = new OpenLayers.LonLat( 9.5788, 48.9773 )
            new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
            map.getProjectionObject() // to Spherical Mercator Projection
    var zoom=11;
    map.setCenter (lonLat, zoom);
// ]]></script>

... have change the path in source to "./themes/textfile.txt"

... copy the txt-file in the folder /themes where a web.config file is

... copy the hole source in the HTML-Box in the Page

but it doesn't function.

Feb 20, 2012 at 1:29 AM

/themes is a very bad place to put this file. You need to put it in a specific theme, and not at its root but rather in a subdirectory of it.

You don't just need any web.config, you need one that allows for your file to be served.

Feb 20, 2012 at 7:41 PM

Have set the right Folder and paste from:
the web.config in it but it is not possible to viewing the map.

I have found 4 Questions about maps (Bing Map, Google Maps..) in this forums but no right answers and no
complete sample code.

Have anybody ideas (please complete Instructions and sample code) to put Maps from Openstreetmap, Bing, and Google in Orchard.?

Code from works in a page but I will also use Markes for POI and so on in the map.

Feb 21, 2012 at 2:01 AM

What is the exact url where you are trying to get textfile.txt from, and where is is physically located on your file system?