Open 4tikhonov opened 10 years ago
What would be the reason for having google maps rather than leaflet? It would be possible but point of view simplicity it would be nicer to keep a single map backend. (Showing different layers is possible if that is needed).
For example, to show war battles with historical boundaries.
OK, so you'd like a custom layers - got you. I note that the map is the Recline map view running off Leaflet so anything leaflet does we'd be able to support and leaflet definitely supports custom layers afaik.
Yes, exactly correct! And I want to make render the right column (which is map at the moment) with custom layers from data file.
OK, this is starting to get quite complex ;-) Are you a coder btw?
Yes, developer. This is why we need all this complex stuff, by the way http://www.slideshare.net/vty/bridging-research-and-collections
@4tikhonov ok - this would be too hard to implement. I'm just implementing custom config for each view and this could be part of it. Would you be up for implementing if i provide guidance?
Yes, please provide the guide and I'll check what I can do.
so the map section is the Recline map view which is a thin wrapper around leaflet: https://github.com/okfn/recline/blob/master/src/view.map.js
Roughly I think we need to
@4tikhonov does this make sense?
@4tikhonov just wanted to check if the above roadmap made sense (also if the architecture overview made sense)
Here's what you'd need to change in recline: https://github.com/okfn/recline/blob/master/src/view.map.js#L436
To use google maps as the base layer see http://matchingnotes.com/using-google-map-tiles-with-leaflet
Proper way is to put a proper patch into recline but right now we could possibly monkey-patch here ...
HI @rgrp after the comment has be made , i contacted James and found out replacing the tile would display Google Maps instead of Openmaps .
Here is the fix for that
var mapUrl = " https://mts0.google.com/vt/lyrs=m@209000000&hl=en&src=app&x={x}&y={y}&z={z}&s={s}";
This should work charmingly :+1:
I suggest @rgrp to add a comment line so users could uncomment, incase they need Google maps.
Thanks to Jamescroft from Matching notes and Precisely to @rgrp and @okfn Labs for the wonderful Timemapper.
@betacoder this is awesome - thanks for reporting. We should probably make this a config option. In the mean time this is a very nice "hack".
Is it possible to use in timemapper other map solutions than Leaflet, for example Google Maps?
[Separate issue e.g. #60 - If it's possible to adjust to render directly from the source (JSON, CSV, etc), it can be quite useful for developers to show landscapes, routes, etc.]