Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski schrieb: On Wed, Oct 22, 2008 at 8:03 PM, Lukasz Szybalski [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 5:16 PM, Shaun McDonald [EMAIL PROTECTED] wrote: On 22 Oct 2008, at 21:38, Lukasz Szybalski wrote: You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Why not use a little bit of trial and error? The following layer in my python code aka. tw.openlayers: my2 = OSMMapnik(name=tile, url=['http://tah.openstreetmap.org/Tiles/tile/'], options = {'layers': 'osm', 'format':'png'}) generates the following layer in java script: new OpenLayers.Layer.OSM.Mapnik('tile',['http://tah.openstreetmap.org/Tiles/tile/'],{layers: osm, format: png}) What above javascript suppose to look like? (I can't find similar looking javascript on google) If I do: OpenLayers.Layer.OSM.Mapnik(Mapnik) this will render just fine from openstreetmaps.org How can I tell it to use my url (mydomain.com/path)??? Thanks for your help guys. Lucas Have a look at http://openstreetmap.org/openlayers/OpenStreetMap.js/1219964995 to see how it works. nico ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 12:21:30PM -0500, Lukasz Szybalski wrote: I still can't find an example of openstreet layers that uses google style URL mapping (aka mapnik style)? Why don't you just go to informationfreeway.org and have a look at the source of that one page. it contains all you need. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On 23 Oct 2008, at 03:51, Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 8:03 PM, Lukasz Szybalski [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 5:16 PM, Shaun McDonald [EMAIL PROTECTED] wrote: On 22 Oct 2008, at 21:38, Lukasz Szybalski wrote: You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Why not use a little bit of trial and error? The following layer in my python code aka. tw.openlayers: my2 = OSMMapnik(name=tile, url=['http://tah.openstreetmap.org/Tiles/tile/'], options = {'layers': 'osm', 'format':'png'}) generates the following layer in java script: new OpenLayers.Layer.OSM.Mapnik('tile',['http://tah.openstreetmap.org/Tiles/tile/' ],{layers: osm, format: png}) What above javascript suppose to look like? (I can't find similar looking javascript on google) If I do: OpenLayers.Layer.OSM.Mapnik(Mapnik) this will render just fine from openstreetmaps.org How can I tell it to use my url (mydomain.com/path)??? You will probably have to change the OSMMapnik code. Shaun smime.p7s Description: S/MIME cryptographic signature ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Thu, Oct 23, 2008 at 10:02 AM, Shaun McDonald [EMAIL PROTECTED] wrote: On 23 Oct 2008, at 03:51, Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 8:03 PM, Lukasz Szybalski [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 5:16 PM, Shaun McDonald [EMAIL PROTECTED] wrote: On 22 Oct 2008, at 21:38, Lukasz Szybalski wrote: You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Why not use a little bit of trial and error? The following layer in my python code aka. tw.openlayers: my2 = OSMMapnik(name=tile, url=['http://tah.openstreetmap.org/Tiles/tile/'], options = {'layers': 'osm', 'format':'png'}) generates the following layer in java script: new OpenLayers.Layer.OSM.Mapnik('tile',['http://tah.openstreetmap.org/Tiles/tile/'],{layers: osm, format: png}) What above javascript suppose to look like? (I can't find similar looking javascript on google) If I do: OpenLayers.Layer.OSM.Mapnik(Mapnik) this will render just fine from openstreetmaps.org How can I tell it to use my url (mydomain.com/path)??? You will probably have to change the OSMMapnik code. Is there an example where I could overwrite the url variable in the OpenStreetMap.js outside of that file? . (Because the way its delivered that file is more of a library file so I would like to keep any changes to it outside of that file if possible? Is it possible to overwrite url with mine url outside of openstreetmap.js. What exactly is the difference between OSMMapnik vs osmarender. (Performance? Features? Backend? Tiles generation?) Thanks, Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On 23 Oct 2008, at 16:12, Lukasz Szybalski wrote: Is there an example where I could overwrite the url variable in the OpenStreetMap.js outside of that file? . (Because the way its delivered that file is more of a library file so I would like to keep any changes to it outside of that file if possible? Is it possible to overwrite url with mine url outside of openstreetmap.js. No one here has used that library, so it's kinda difficult to say. Try speaking to the people who actually wrote the library. What exactly is the difference between OSMMapnik vs osmarender. (Performance? Features? Backend? Tiles generation?) There should be plenty information out there on the wiki and google about mapnik and osmarender. Shaun smime.p7s Description: S/MIME cryptographic signature ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Thu, Oct 23, 2008 at 10:44 AM, Shaun McDonald [EMAIL PROTECTED] wrote: On 23 Oct 2008, at 16:12, Lukasz Szybalski wrote: Is there an example where I could overwrite the url variable in the OpenStreetMap.js outside of that file? . (Because the way its delivered that file is more of a library file so I would like to keep any changes to it outside of that file if possible? Is it possible to overwrite url with mine url outside of openstreetmap.js. No one here has used that library, so it's kinda difficult to say. Try speaking to the people who actually wrote the library. So you are saying that Openstreetmap.js came from openlayers people and not the openstreetmap people or ?? Lucas What exactly is the difference between OSMMapnik vs osmarender. (Performance? Features? Backend? Tiles generation?) There should be plenty information out there on the wiki and google about mapnik and osmarender. Shaun -- Turbogears2 Manual http://lucasmanual.com/mywiki/TurboGears2 Bazaar and Launchpad http://lucasmanual.com/mywiki/bzr ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On 23 Oct 2008, at 17:16, Lukasz Szybalski wrote: On Thu, Oct 23, 2008 at 10:44 AM, Shaun McDonald [EMAIL PROTECTED] wrote: On 23 Oct 2008, at 16:12, Lukasz Szybalski wrote: Is there an example where I could overwrite the url variable in the OpenStreetMap.js outside of that file? . (Because the way its delivered that file is more of a library file so I would like to keep any changes to it outside of that file if possible? Is it possible to overwrite url with mine url outside of openstreetmap.js. No one here has used that library, so it's kinda difficult to say. Try speaking to the people who actually wrote the library. So you are saying that Openstreetmap.js came from openlayers people and not the openstreetmap people or ?? That is an OpenStreetMap specific file, to make it easy to use and keep the osm tile urls up to date, without everyone having to do it themselves. If you want to use some different tile you will need to do a little extra work, or use an alternative source. One example that someone else mentioned was the information freeway. I might have been getting confused with your mentioning of the python libraries earlier in the thread. Shaun Lucas What exactly is the difference between OSMMapnik vs osmarender. (Performance? Features? Backend? Tiles generation?) There should be plenty information out there on the wiki and google about mapnik and osmarender. Shaun -- Turbogears2 Manual http://lucasmanual.com/mywiki/TurboGears2 Bazaar and Launchpad http://lucasmanual.com/mywiki/bzr ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: On Tue, Oct 21, 2008 at 7:56 PM, Grant Slater [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: Hello, I am trying to use the turbogears widget for openlayers and I'm having hard time figuring out how to point to openstreetmaps.org tiles. One of the examples they have: ol = WMS(name=OpenLayers WMS, url=[http://labs.metacarta.com/wms/vmap0;], options = {'layers':'basic'}) what would be a corresponding one for http://tile.openstreetmap.org/ ? Do I use WMS? I can't seem to find the settings to use with mapnik...tiles. See: http://wiki.openstreetmap.org/index.php/OpenLayers_Simple_Example The example you pointed to uses TMS. Can I use WMS and mapnik? I'm sure you can, but you will probably have to run it yourself. -- Chris Jones, SUCS Admin http://sucs.org ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: So its safe to assume that TMS is what mapnik provides? (only) and if I want WMS I would have to create that service on my server? Your server yes. OSM's tile servers do TMS only. Mapnik WMS support. http://trac.mapnik.org/wiki/OgcServer / Grant ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 4:51 AM, Chris Jones [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: On Tue, Oct 21, 2008 at 7:56 PM, Grant Slater [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: Hello, I am trying to use the turbogears widget for openlayers and I'm having hard time figuring out how to point to openstreetmaps.org tiles. One of the examples they have: ol = WMS(name=OpenLayers WMS, url=[http://labs.metacarta.com/wms/vmap0;], options = {'layers':'basic'}) what would be a corresponding one for http://tile.openstreetmap.org/ ? Do I use WMS? I can't seem to find the settings to use with mapnik...tiles. See: http://wiki.openstreetmap.org/index.php/OpenLayers_Simple_Example The example you pointed to uses TMS. Can I use WMS and mapnik? I'm sure you can, but you will probably have to run it yourself. So its safe to assume that TMS is what mapnik provides? (only) and if I want WMS I would have to create that service on my server? Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lucas wrote: So now what is the layer name for this url? I know the image is png: http://www.openlayers.org/dev/examples/tms.html I replaced the url with http://tile.openstreetmap.org/; what is the layer_name? Is this url working for you? What options you have selected? What you're talking about is beyond me, but there are two OSM examples at openlayers that I found by searching for OSM here: http://www.openlayers.org/dev/examples/example-list.html If you pick them and view source, are they any use? Ed ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 9:23 AM, Ed Loach [EMAIL PROTECTED] wrote: I realise now that one of those two examples uses an offline tile source - it's interesting to see how much the area around here has changed, but not much use for you. Hopefully this one is more use? http://www.openlayers.org/dev/examples/sundials-osm.html Ed -Original Message- From: [EMAIL PROTECTED] [mailto:talk- [EMAIL PROTECTED] On Behalf Of Lukasz Szybalski Sent: 22 October 2008 14:51 To: Grant Slater Cc: OSM Talk Subject: Re: [OSM-talk] mapnik and openlayers? On Wed, Oct 22, 2008 at 8:29 AM, Grant Slater [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: So its safe to assume that TMS is what mapnik provides? (only) and if I want WMS I would have to create that service on my server? Your server yes. OSM's tile servers do TMS only. So now what is the layer name for this url? I know the image is png: http://www.openlayers.org/dev/examples/tms.html I replaced the url with http://tile.openstreetmap.org/; what is the layer_name? This is the code to get the maps but it doesn't have a TMS layer name var mapnik = new OpenLayers.Layer.TMS( 34 OpenStreetMap (Mapnik), 35 http://tile.openstreetmap.org/;, 36 { 37 type: 'png', getURL: osm_getTileURL, 38 displayOutsideMaxExtent: true, 39 attribution: 'a href=http://www.openstreetmap.org/;OpenStreetMap/a' 40 } Anybody? http://www.openlayers.org/dev/examples/tms.html Thanks, Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski schrieb: On Wed, Oct 22, 2008 at 9:23 AM, Ed Loach [EMAIL PROTECTED] wrote: I realise now that one of those two examples uses an offline tile source - it's interesting to see how much the area around here has changed, but not much use for you. Hopefully this one is more use? http://www.openlayers.org/dev/examples/sundials-osm.html Ed -Original Message- From: [EMAIL PROTECTED] [mailto:talk- [EMAIL PROTECTED] On Behalf Of Lukasz Szybalski Sent: 22 October 2008 14:51 To: Grant Slater Cc: OSM Talk Subject: Re: [OSM-talk] mapnik and openlayers? On Wed, Oct 22, 2008 at 8:29 AM, Grant Slater [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: So its safe to assume that TMS is what mapnik provides? (only) and if I want WMS I would have to create that service on my server? Your server yes. OSM's tile servers do TMS only. So now what is the layer name for this url? I know the image is png: http://www.openlayers.org/dev/examples/tms.html I replaced the url with http://tile.openstreetmap.org/; what is the layer_name? This is the code to get the maps but it doesn't have a TMS layer name var mapnik = new OpenLayers.Layer.TMS( 34OpenStreetMap (Mapnik), 35http://tile.openstreetmap.org/;, 36{ 37type: 'png', getURL: osm_getTileURL, 38displayOutsideMaxExtent: true, 39attribution: 'a href=http://www.openstreetmap.org/;OpenStreetMap/a' 40} Anybody? http://www.openlayers.org/dev/examples/tms.html When you look at the URL of one maptile you will se something like http://tile.openstreetmap.org/5/16/10.png which is no typical URL for a TMS. A TMS url would be something like http://example.com/1.0.0/layername/5/16/10.png Now check the link Grant provided earlier to the Openlayers example for OSM. Here is it again: http://wiki.openstreetmap.org/index.php/OpenLayers_Simple_Example There is not just OpenLayers, but also an additional javascript file from OSM. This file provides the OSM layertypes like OpenLayers.Layer.OSM.Mapnik OpenLayers.Layer.OSM.Maplint OpenLayers.Layer.OSM.CycleMap So I guess the Turbogears-Openlayers widget will not be to much help for you here. You can either extent the functionality of this widget to support OSM Layers, or write the neccessary Javascript yourself. greetings, nico ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: ok so I kind of got this url working: http://www.openlayers.org/dev/examples/tms.html url:http://tile.openstreetmap.org/ image:png layer_name: .. (two dots because 1.0.0 gets added to the url http://tile.openstreetmap.org/1.0.0/...) I've been told that mapnik/openstreetmap.org uses flipped TMS instead of TMS and if you want to use TMS with openstreetmap.org you need to create a custom get url function... Is there a way to configure mapnik to use proper TMS? Mapnik is just a rendering engine - where you put the tiles that it generates and how your web server maps URLs to those tiles is nothing to do with mapnik. Our mapnik tile server uses mod_tile to server the mapnik generated tiles, which uses the google style URL scheme, not a TMS URL scheme. If you want to configure a web server to use a TMS URL scheme instead then it is perfectly possible. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
ok so I kind of got this url working: http://www.openlayers.org/dev/examples/tms.html url:http://tile.openstreetmap.org/ image:png layer_name: .. (two dots because 1.0.0 gets added to the url http://tile.openstreetmap.org/1.0.0/...) I've been told that mapnik/openstreetmap.org uses flipped TMS instead of TMS and if you want to use TMS with openstreetmap.org you need to create a custom get url function... Is there a way to configure mapnik to use proper TMS? Thanks, Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 10:22 AM, Tom Hughes [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: ok so I kind of got this url working: http://www.openlayers.org/dev/examples/tms.html url:http://tile.openstreetmap.org/ image:png layer_name: .. (two dots because 1.0.0 gets added to the url http://tile.openstreetmap.org/1.0.0/...) I've been told that mapnik/openstreetmap.org uses flipped TMS instead of TMS and if you want to use TMS with openstreetmap.org you need to create a custom get url function... Is there a way to configure mapnik to use proper TMS? Mapnik is just a rendering engine - where you put the tiles that it generates and how your web server maps URLs to those tiles is nothing to do with mapnik. Our mapnik tile server uses mod_tile to server the mapnik generated tiles, which uses the google style URL scheme, not a TMS URL scheme. We are getting somewhere.. Is there a name for gogle style URL scheme in openlayers? (Not TMS we know now) If you want to configure a web server to use a TMS URL scheme instead then it is perfectly possible. How do I configure my web server (or mapnik) to server or generate TMS URL scheme? Thanks, Lucas Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ -- Turbogears2 Manual http://lucasmanual.com/mywiki/TurboGears2 Bazaar and Launchpad http://lucasmanual.com/mywiki/bzr ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 10:22 AM, Tom Hughes [EMAIL PROTECTED] wrote: Mapnik is just a rendering engine - where you put the tiles that it generates and how your web server maps URLs to those tiles is nothing to do with mapnik. Our mapnik tile server uses mod_tile to server the mapnik generated tiles, which uses the google style URL scheme, not a TMS URL scheme. We are getting somewhere.. Is there a name for gogle style URL scheme in openlayers? (Not TMS we know now) Why do you care so much? What's wrong with just using our layer definitions? Those use TMS but override the URL generation to generate a URL in the right format. If you want to configure a web server to use a TMS URL scheme instead then it is perfectly possible. How do I configure my web server (or mapnik) to server or generate TMS URL scheme? That's like asking how long a piece of string is really. The simplest way is just to generate tiles into a directory hierarchy that matches the TMS URL scheme and then just serve that directory in the normal way. That probably won't work if you're doing the whole planet though. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 10:43 AM, Tom Hughes [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 10:22 AM, Tom Hughes [EMAIL PROTECTED] wrote: Mapnik is just a rendering engine - where you put the tiles that it generates and how your web server maps URLs to those tiles is nothing to do with mapnik. Our mapnik tile server uses mod_tile to server the mapnik generated tiles, which uses the google style URL scheme, not a TMS URL scheme. We are getting somewhere.. Is there a name for gogle style URL scheme in openlayers? (Not TMS we know now) Why do you care so much? What's wrong with just using our layer definitions? Those use TMS but override the URL generation to generate a URL in the right format. Because I need mapnik to render planet then I will use openlayers to display it. Openlayers has a wrapper in tw.openlayers (tosca widgets) which I can import into my turbogears application which enables me to display my custom layer on top of the openstreetmap.org layer all using python. So if I can't figure out what url scheme is used to display mapnik data, I can't tell if openlayers will display it, and if I don't know which part of openlayers displays it I can't check if the wrapper in toscawidgets is done for that part, and if its not done then how is it all going to work? I hope that makes it clear why I need to know: What is the url scheme for mapnik images, ( its google style URL, is there a proper name for it?) Is there a sample code in openlayers that displays google style url and I can use it to display mapnik data? Thanks, Lucas If you want to configure a web server to use a TMS URL scheme instead then it is perfectly possible. How do I configure my web server (or mapnik) to server or generate TMS URL scheme? That's like asking how long a piece of string is really. The simplest way is just to generate tiles into a directory hierarchy that matches the TMS URL scheme and then just serve that directory in the normal way. That probably won't work if you're doing the whole planet though. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ -- Turbogears2 Manual http://lucasmanual.com/mywiki/TurboGears2 Bazaar and Launchpad http://lucasmanual.com/mywiki/bzr ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 10:43 AM, Tom Hughes [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 10:22 AM, Tom Hughes [EMAIL PROTECTED] wrote: Mapnik is just a rendering engine - where you put the tiles that it generates and how your web server maps URLs to those tiles is nothing to do with mapnik. Our mapnik tile server uses mod_tile to server the mapnik generated tiles, which uses the google style URL scheme, not a TMS URL scheme. We are getting somewhere.. Is there a name for gogle style URL scheme in openlayers? (Not TMS we know now) Why do you care so much? What's wrong with just using our layer definitions? Those use TMS but override the URL generation to generate a URL in the right format. Because I need mapnik to render planet then I will use openlayers to display it. Openlayers has a wrapper in tw.openlayers (tosca widgets) which I can import into my turbogears application which enables me to display my custom layer on top of the openstreetmap.org layer all using python. Does that wrapper limit you to only using the core layers provided by OpenLayers then? You can't load any additional layers? So if I can't figure out what url scheme is used to display mapnik data, I can't tell if openlayers will display it, and if I don't know which part of openlayers displays it I can't check if the wrapper in toscawidgets is done for that part, and if its not done then how is it all going to work? Native OpenLayers can only display it if you override the URL generation function for the layer, which is exactly what our layers do - they derive from the TMS layer and modify the URL generation to generate the required format. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 11:50 AM, Tom Hughes [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 10:43 AM, Tom Hughes [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: On Wed, Oct 22, 2008 at 10:22 AM, Tom Hughes [EMAIL PROTECTED] wrote: Mapnik is just a rendering engine - where you put the tiles that it generates and how your web server maps URLs to those tiles is nothing to do with mapnik. Our mapnik tile server uses mod_tile to server the mapnik generated tiles, which uses the google style URL scheme, not a TMS URL scheme. We are getting somewhere.. Is there a name for gogle style URL scheme in openlayers? (Not TMS we know now) Why do you care so much? What's wrong with just using our layer definitions? Those use TMS but override the URL generation to generate a URL in the right format. Because I need mapnik to render planet then I will use openlayers to display it. Openlayers has a wrapper in tw.openlayers (tosca widgets) which I can import into my turbogears application which enables me to display my custom layer on top of the openstreetmap.org layer all using python. Does that wrapper limit you to only using the core layers provided by OpenLayers then? You can't load any additional layers? So if I can't figure out what url scheme is used to display mapnik data, I can't tell if openlayers will display it, and if I don't know which part of openlayers displays it I can't check if the wrapper in toscawidgets is done for that part, and if its not done then how is it all going to work? Native OpenLayers can only display it if you override the URL generation function for the layer, which is exactly what our layers do - they derive from the TMS layer and modify the URL generation to generate the required format. I'm not really sure what you mean in above. I'm not that knowledgeable yet in technical details of map layers you use at openstreetmap.org. Right now I just want to display the openstreetmap.org tiles on my map and be able to zoom in etc then Here is what I want to achieve but with openstreetmaps.org underneath it. http://geo.turbogears.org/factbook/ I still can't find an example of openstreet layers that uses google style URL mapping (aka mapnik style)? Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: I'm not really sure what you mean in above. I'm not that knowledgeable yet in technical details of map layers you use at openstreetmap.org. Right now I just want to display the openstreetmap.org tiles on my map and be able to zoom in etc then Here is what I want to achieve but with openstreetmaps.org underneath it. http://geo.turbogears.org/factbook/ The source would be more helpful - I can't tell anything very much from what the resulting page looks like. I know nothing about Turbo Gears, but if you can give an example of a Turbo Gears page that uses OL we can probably show you how to modify it to display an OSM layer. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
I know nothing about Turbo Gears, but if you can give an example of a Turbo Gears page that uses OL we can probably show you how to modify it to display an OSM layer. Right now I need to know how can I configure openlayers to use tile.openstreetmap.org or how to configure mapnik to render images that openlayer can use. Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: I know nothing about Turbo Gears, but if you can give an example of a Turbo Gears page that uses OL we can probably show you how to modify it to display an OSM layer. Right now I need to know how can I configure openlayers to use tile.openstreetmap.org or how to configure mapnik to render images that openlayer can use. You've been pointed at a web page that tells you how to do that. Please go and read it. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu/ ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On 22 Oct 2008, at 21:38, Lukasz Szybalski wrote: You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Why not use a little bit of trial and error? Shaun smime.p7s Description: S/MIME cryptographic signature ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 5:16 PM, Shaun McDonald [EMAIL PROTECTED] wrote: On 22 Oct 2008, at 21:38, Lukasz Szybalski wrote: You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Why not use a little bit of trial and error? The following layer in my python code aka. tw.openlayers: my2 = OSMMapnik(name=tile, url=['http://tah.openstreetmap.org/Tiles/tile/'], options = {'layers': 'osm', 'format':'png'}) generates the following layer in java script: new OpenLayers.Layer.OSM.Mapnik('tile',['http://tah.openstreetmap.org/Tiles/tile/'],{layers: osm, format: png}) What above javascript suppose to look like? (I can't find similar looking javascript on google) Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Wed, Oct 22, 2008 at 8:03 PM, Lukasz Szybalski [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 5:16 PM, Shaun McDonald [EMAIL PROTECTED] wrote: On 22 Oct 2008, at 21:38, Lukasz Szybalski wrote: You've been pointed at a web page that tells you how to do that. Please go and read it. So I've looked at the source code for the tw.openlayers which should correspond to openlayers java script file. http://toscawidgets.org/hg/tw.openlayers/file/387a2f19c67a/tw/openlayers/layer.py from layer import Layer, Grid, WMS, Google, Yahoo, VirtualEarth from layer import Vector, GML, OSMMapnik, OSMRenderer I assume these directly correspond to openlayers java script file. Which of these do I use to get my tiles? http://a.tah.openstreetmap.org/Tiles/tile/10/262/380.png I assume OSMMapnik is the one I should use? Correct? Why not use a little bit of trial and error? The following layer in my python code aka. tw.openlayers: my2 = OSMMapnik(name=tile, url=['http://tah.openstreetmap.org/Tiles/tile/'], options = {'layers': 'osm', 'format':'png'}) generates the following layer in java script: new OpenLayers.Layer.OSM.Mapnik('tile',['http://tah.openstreetmap.org/Tiles/tile/'],{layers: osm, format: png}) What above javascript suppose to look like? (I can't find similar looking javascript on google) If I do: OpenLayers.Layer.OSM.Mapnik(Mapnik) this will render just fine from openstreetmaps.org How can I tell it to use my url (mydomain.com/path)??? Thanks for your help guys. Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
Lukasz Szybalski wrote: Hello, I am trying to use the turbogears widget for openlayers and I'm having hard time figuring out how to point to openstreetmaps.org tiles. One of the examples they have: ol = WMS(name=OpenLayers WMS, url=[http://labs.metacarta.com/wms/vmap0;], options = {'layers':'basic'}) what would be a corresponding one for http://tile.openstreetmap.org/ ? Do I use WMS? I can't seem to find the settings to use with mapnik...tiles. See: http://wiki.openstreetmap.org/index.php/OpenLayers_Simple_Example / Grant ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] mapnik and openlayers?
On Tue, Oct 21, 2008 at 7:56 PM, Grant Slater [EMAIL PROTECTED] wrote: Lukasz Szybalski wrote: Hello, I am trying to use the turbogears widget for openlayers and I'm having hard time figuring out how to point to openstreetmaps.org tiles. One of the examples they have: ol = WMS(name=OpenLayers WMS, url=[http://labs.metacarta.com/wms/vmap0;], options = {'layers':'basic'}) what would be a corresponding one for http://tile.openstreetmap.org/ ? Do I use WMS? I can't seem to find the settings to use with mapnik...tiles. See: http://wiki.openstreetmap.org/index.php/OpenLayers_Simple_Example The example you pointed to uses TMS. Can I use WMS and mapnik? Lucas ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk