Talk:OpenPisteMap
From OpenStreetMap
Discuss OpenPisteMap here
transparent layer
Wouldn't be a lighter job only to render piste features, and view them as a transparent layer over the existing OSM tiles ???? Pistes feature could then be un rendered on OSM and make it lighter on it's side also... --PhilippeP 13:03, 10 March 2008 (UTC)
- Possibly, but that doesn't allow the existing features to be customised to make them more appropriate for a piste map. Also, contour lines probably won't work well as a transparent layer since they would obscure other features. Steve Hill 21:34, 10 March 2008 (UTC)
- What existing features ?? As a layer could be switched on/off, nothing would be obscured ... And it wouldn't be necessary to render osmarender and mapnik versions also ... --PhilippeP 08:29, 11 March 2008 (UTC)
- Certain features will probably want to be modified - for example, minor tracks probably want to be rendered in a lighter colour since they will often be obscured by a piste during the winter. Steve Hill 12:56, 11 March 2008 (UTC)
- What existing features ?? As a layer could be switched on/off, nothing would be obscured ... And it wouldn't be necessary to render osmarender and mapnik versions also ... --PhilippeP 08:29, 11 March 2008 (UTC)
Contours tip
Contours duplicate text - you don't need to worry about that, if you're following my guide for the cycle map. If you want to render the contour names for the 10m and 100m shapefiles, just don't render it for the 100m shapefiles at all! All the heights are in the most detailed shapefile. Gravitystorm 13:36, 11 March 2008 (UTC)
- Thanks for the tip. I've actually solved it in a different way, which I hope will work out neater once I start importing lots of contour data - instead of generating lots of shapefiles (and 3 layers for each), I am loading the whole 10m dataset into PostGIS. I then define 3 layers (10m, 50m, and 100m) and select the appropriate contour intervals out of the database, excluding the overlapping contours from the higher frequency sets. This means that for n shapefiles I only need 3 layers rather than 3n layers, and don't need to adjust the XML whenever I add contours for more areas. I'll add information about this approach to your contours wiki page once I've got it all working. :)
openpistemap.org - IE6 browser troubles
Oh. I just realised that you have actually made some good progress with setting something up at http://openpistemap.org I was suggesting you needed some kind of holding page, because I thought there was nothing there, but using firefox, I see a piste map!
It must be serving a wrong mimetype or something because I.E.6 comes up with a download prompt, and then doesn't know what to open the file with
...and before you say it. I'm forced to use IE6 at work. I don't do it voluntarily (but over 50% of web-surfers are still on it) Dunno if IE7 copes better.
-- Harry Wood 18:47, 12 March 2008 (UTC)
- The page is served with the correct mime type (but IE, of course, doesn't support the standard mime type). I will be switching to a text/html mime type at some point anyway because OpenLayers actually uses some functionality that is disallowed in XHTML, but that will require some adjustments to the XHTML itself and I haven't had chance to do it yet. - Steve Hill 21:42, 12 March 2008 (UTC)
- I've now tweaked the page and it is being served as text/html. I have no way to test it in IE though as I have no access to any Windows machines. - Steve Hill
- Yep. that's fixed that problem. Still don't see the slippy map in IE6 though. It looks like the map div is rendering with zero height (I'm seeing a 2px black line along the top of the page) Is it javascript which is supposed to be setting the div's height? Not seeing any javascript error though. -- Harry Wood 09:58, 13 March 2008 (UTC)
- The div is positioned and sized by CSS (it is positioned absolutely with the top, bottom, left and right properties set appropriately). I don't have access to any Windows machines, so I can't test it in IE to see why it breaks - if someone else can submit a patch then I'll apply it though. (It's a really simple page... I'm not sure how IE can manage to get it so wrong). Steve Hill 10:29, 13 March 2008 (UTC)
- I took a look in a bit more detail. On OpenStreetMap we have
- window.onload = handleResize;
- window.onresize = handleResize;
- ...kicking off a resizing function. Openpistemap does not have this. Maybe IE6 depends upon this, while other browsers manage purely with CSS (although I think all browsers use that function when expanding out the search sidebar?) That's my guess. I'll look into it some more some time. I know it's not going to be easy for you to fix it without access to this shabby old browser :-)
- -- Harry Wood 11:03, 13 March 2008 (UTC)
- Looks possible, although I'd prefer to fix this with (possibly IE-specific) CSS if at all possible. Steve Hill 11:40, 13 March 2008 (UTC)
- IE6 should be spelled IESux ... I also have IE @work but I use FF anyway , and I can confirm the IEFix (A hair on my tongue) bug... In the meantime, maybe adding a message promoting another browser in the left pane ? --PhilippeP 12:22, 13 March 2008 (UTC)
- I've added an [if IE] section to the sidebar that explains the situation and points at this talk page.Steve Hill 13:09, 13 March 2008 (UTC)
- IE6 should be spelled IESux ... I also have IE @work but I use FF anyway , and I can confirm the IEFix (A hair on my tongue) bug... In the meantime, maybe adding a message promoting another browser in the left pane ? --PhilippeP 12:22, 13 March 2008 (UTC)
- Looks possible, although I'd prefer to fix this with (possibly IE-specific) CSS if at all possible. Steve Hill 11:40, 13 March 2008 (UTC)
- I took a look in a bit more detail. On OpenStreetMap we have
- The div is positioned and sized by CSS (it is positioned absolutely with the top, bottom, left and right properties set appropriately). I don't have access to any Windows machines, so I can't test it in IE to see why it breaks - if someone else can submit a patch then I'll apply it though. (It's a really simple page... I'm not sure how IE can manage to get it so wrong). Steve Hill 10:29, 13 March 2008 (UTC)
- Yep. that's fixed that problem. Still don't see the slippy map in IE6 though. It looks like the map div is rendering with zero height (I'm seeing a 2px black line along the top of the page) Is it javascript which is supposed to be setting the div's height? Not seeing any javascript error though. -- Harry Wood 09:58, 13 March 2008 (UTC)

