jdlrobson / WikiMaps

WikiMaps
4 stars 2 forks source link

Support static map view #12

Open jdlrobson opened 10 years ago

jdlrobson commented 10 years ago

This would also support non JavaScript users

jakaniew commented 10 years ago

Can you give some ideas how this should look like?

I already have some library that create SVG rendition from GeoJSON file by creating two layers within SVG file.

The library is in JavaScript but it can be rather easily ported to PHP.

Please check if this logic is possible withing MediaWiki:

jdlrobson commented 10 years ago

hey @jakaniew i'm not 100% sure how this would work yet! but a great first step would be to get a simple map png in place (non-dynamic) that is loaded by default and when clicked loads the map.

We could then explore a service where we configure this image to point to some external service who's job it is to generate PNGs (which are potentially saved on a map edit - I'm not 100% sure)

You've definitely got the right ideas and pieces of the puzzle I'm just not sure how the pieces fit together yet! Please feel free to submit something so we can play around with this idea! :)

jkan997 commented 10 years ago

Create pull request #18 (sorry for messing with indentation in some files)

This is first step of introducing static maps - right now we have SVG maps generated on the fly

Now we have decided how we want to rasterize them to PNG

I see two options:

jkan997 commented 10 years ago

OK, as mentioned before created another pull request #19

What do you think we should do further regarding options mentioned in post above?