You are not logged in.

#1 2008-09-04 13:12:37

Sebastiaan
Member
From: Gent, Belgium
Registered: 2008-09-04
Posts: 1

Openlayers modification

Hi,

I'm working with the we-travel project of a routable J2ME application. For the maps it would be usefull if users could compile the area they need on their own. Therefore, I would like to implement an interface that allows downloading chuncks of the precompiled maps as needed.

I once saw a website where you could download OSM data by selecting rectangles on a slippy map. As that would be a good starting base for what I have in mind, I'm looking for that URL or similar websites to get started. Alternatively, a pointer to just some usefull javascript to do this would be nice too.

Thanks a lot.

Sebastiaan

Offline

#2 2008-09-04 13:50:46

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 3,269
Website

Re: Openlayers modification

I guess it was my site (garmin.na1400.info) but that feature is gone now. Basically it isn't difficult, all you need to do is create a 'feature' layer and draw 'vector' features. These vectors are a 'linestring' of points that represent the area's bounding box. These vector features can be loaded using a defining KML file in OpenLayers. Last, you need to add a click event to the feature layer which shows a popup containing the download link and/or extra info. That's it, as said it is quite basic really but you need to get in touch with the OpenLayers way of thinking. Having experience with JavaScript might help.

For examples I recommend the vector drawing examples of OpenLayers. You can ask further questions here or join the Dutch IRC channel (I assume you speak Dutch/Vlaams?).


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

Board footer

Powered by FluxBB