OS OpenSpace [logo]

OS OpenSpace Forum » OS OpenSpace » Application Gallery

Thread: Routes website

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 6 - Pages: 1 - Last Post: 27-Nov-2009 09:25 by: dhayes
dhayes

Posts: 4
Registered: 19/11/09
Routes website
Posted: 20-Nov-2009 17:27
  Click to reply to this thread Reply

I've just added OpenSpace support to an existing site. I did a proof of concept last year, but finally got around to adding OpenSpace support to the main site.

The site is called www.sharemyroutes.com

and an example of an OS map is here:
http://www.sharemyroutes.com/routes/United-Kingdom/Lake-District/Deepdale-Horseshoe/elevationOSmap.aspx

UK routes can be shown in Bing/Google and now OpenSpace.

There's still some minor bugs to fix, like the vector layer being on top of the markers (any hints on that?). One feature I'm pleased with is the 'layers' link about the map, which allows you to add addition information to the map.

Monkeyspoon

Posts: 60
Registered: 27/10/08
Re: Routes website
Posted: 20-Nov-2009 19:08   in response to: dhayes
  Click to reply to this thread Reply

This should hopefully cover your layers problem:
http://openspace.ordnancesurvey.co.uk/openspaceforum/message.jspa?messageID=1277#1277

It might be better if you made your route lines semi-transparent, so they don't obscure map details.

dhayes

Posts: 4
Registered: 19/11/09
Re: Routes website
Posted: 23-Nov-2009 14:45   in response to: Monkeyspoon
  Click to reply to this thread Reply

Thanks for the tip. I'd have replied sooner, but the forum seemed to have gone AWOL over the weekend.

I followed your tip on layers and have the markers above the vector layer. I'm not quite sure what to do about the polyline. If it's transparent, it's hard to see, and the whatever colour you use doesn't always stand out from a busy looking map layer, unless you make it so thick it obscures detail behind it. Other people have the same problem, so prehaps it would be really good to have the ability to add a drop shadow or glow effect to polylines to make them standout without covering detail along the actual route, which of course is the bit the viewer is interested in. It's a common problem to all online mapping, and as yet I haven't seen a really good solution to making a polyline show up well against lots different background colours.

ebygomm

Posts: 39
Registered: 03/04/08
Re: Routes website
Posted: 23-Nov-2009 17:42   in response to: dhayes
  Click to reply to this thread Reply

I think it's possible to have the level of transparency set so that text/detail behind isn't completely obscured but the route is still fairly easy to see

see
http://www.mikkel.org.uk/myownlittleworld/mapping/osmap.html?f=SherwoodForest.gpx

Monkeyspoon

Posts: 60
Registered: 27/10/08
Re: Routes website
Posted: 23-Nov-2009 20:09   in response to: dhayes
  Click to reply to this thread Reply

You could experiment with making it wider and more transparent or use line dash styles.

dhayes

Posts: 4
Registered: 19/11/09
Re: Routes website
Posted: 25-Nov-2009 17:19   in response to: Monkeyspoon
  Click to reply to this thread Reply

I'll have a play around and see what works. Until now I have used orange, with a dash of transparency, as it shows up well against the dominant greens, browns and greys of aerial photos, yet still shows up against a road map background. But, orange doesn't seem to work well against an OS map, as there's already orange on the map, and the maps are very busy compared with Bing/Google maps.

I do like the idea of dashed lines.

I guess it might be best to allow the user to choose between a few different options, and let them decide what works best...

dhayes

Posts: 4
Registered: 19/11/09
Re: Routes website
Posted: 27-Nov-2009 09:25   in response to: dhayes
  Click to reply to this thread Reply

I played around with different line styles (kudos monkeyspoon for the dashed line tip), and found no particular style works at all time, so decided to offer the user the ability to change the line style (style under the layers link), which seems to offer a reasonable compromise.

Thanks for all the help with vector layers. I was at first skeptical about learning yet another mapping API, having already done Bing Maps, Bing Maps Silverlight, and Google maps, but I actually started to like openlayers as it's very flexible and powerful. There's a certain irony in the Ordnance Survey, who have previously been less than open about sharing their data using open source software.

Legend
Expert: 51 - 1000 pts
Advanced: 31 - 50 pts
Intermediate: 16 - 30 pts
Novice: 5 - 15 pts
Newbie: 0 - 4 pts
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums