NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi:

I found that the osm main page use the openlayers with custom some features.

I am interested in this, but I only find the compressed codes.

Is it possible to get the uncompressed codes(openlayers related)?

asked 30 May '13, 01:15

hguser's gravatar image

hguser
36336
accept rate: 0%

edited 30 May '13, 15:09

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


I have not looked at the code before / am not involved, but I think you are searching for this: The Rails Port and especially the source code of the main osm page. Well, the main JavaScript code is still loaded into some placeholders there - somewhere (/app/assets/javascripts?) in the github repo, I guess. By the way: if I see correctly the main page uses Leaflet, not (anymore) OpenLayers.

permanent link
This answer is marked "community wiki".

answered 30 May '13, 01:45

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 30 May '13, 02:08

3

In case it helps I think https://github.com/openstreetmap/openstreetmap-website/tree/c0b47c0c2a3c31b42ef946aa6e07b85305091a0c allows you to browse the site code as it was as at the last commit before merging the Leaflet branch.

(30 May '13, 08:36) EdLoach ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×123
×122
×111
×89
×35

question asked: 30 May '13, 01:15

question was seen: 3,338 times

last updated: 30 May '13, 15:09

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum