Mike-Heneghan / ALISS

ALISS (A Local Information System for Scotland) is a service to help you find help and support close to you when you need it most.
https://aliss.org
0 stars 0 forks source link

ServiceDetail map page for iFrames #90

Closed Mike-Heneghan closed 4 years ago

Mike-Heneghan commented 4 years ago

The service detail map functionality could be useful for users who run a service with their own website and would gain value from a map.

To facilitate this we could create a new page on a url like services/service-id/embedded-map which would be optimised for use in iFrames on external sites.

Mike-Heneghan commented 4 years ago

Added a new view which only renders the service detail map to be used with iFrames

Screenshot 2019-08-07 at 11 02 47
Mike-Heneghan commented 4 years ago

Trialled adding an iFrame to a different page to test it works successfully:

Screenshot 2019-08-07 at 11 12 28
Mike-Heneghan commented 4 years ago
Mike-Heneghan commented 4 years ago

Added the feature so that is a user adds an iframe such as:

<iframe src="www.aliss.org/services/service-id/embedded-map" height='550' width='550'></iframe>

The map should render in the window.

Although currently, we do not inform users of the id?

There could maybe be a link or some way for users to get a ready-made iframe for the service they want to display a map to such as:

Screenshot 2019-08-07 at 12 40 24
Mike-Heneghan commented 4 years ago

Skipped and merged in the follow-up feature.