amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-maps

Open ericlindley-g opened this issue 9 years ago • 15 comments

similar to vendor-specific video components: provides default placeholder and potentially does additional resource management for embedded maps like Google Maps (needs understanding of what other map embeds might be needed)

/cc @aghassemi

ericlindley-g avatar Nov 27 '17 06:11 ericlindley-g

Related ( https://github.com/ampproject/amphtml/issues/11985 ) Closing https://github.com/ampproject/amphtml/issues/11985 in favor of this.

aghassemi avatar Nov 27 '17 19:11 aghassemi

We likely need to take the video player approach and do amp-x-map as API and feature set is different across map providers. We could implement a common interface across them if needed similar to video-interface.

aghassemi avatar Feb 23 '18 04:02 aghassemi

Evaluating options for including maps in a travel-related website. Glad to see this is already an open feature request. Following!

joshcp avatar Mar 21 '18 22:03 joshcp

Just as a data point - this came up as something folks would be interested in during a Q&A in the AMP Roadshow in Austin

nainar avatar Jul 16 '18 17:07 nainar

+1 for such a component! Really needed for travel sites.

danieltxok avatar Jul 19 '18 13:07 danieltxok

@dbarcosb and @joshcp — glad to hear this would help! Are you able to share what map providers and features are required for the travel sites you have in mind? I ask because the likely path is to make a separate component for each map provider (e.g. amp-google-maps), and each required feature may need an implementation in the API.

Thanks!

ericlindley-g avatar Jul 19 '18 17:07 ericlindley-g

The map we have in mind is from Google Maps. Google Maps Static API is currently used to create the image placeholder and when the user taps on it, the map is created with Google Maps JavaScript API. This option lets us customize maps with our own places of interests and icons. Thanks!

danieltxok avatar Aug 06 '18 11:08 danieltxok

Commenting as @aghassemi redirected my post here. This feature would be great. We currently have a locator running on our website, but obviously that page (link) is not AMP compliant due to the JavaScript required for the multiple markers and search.

I'm working on a custom version, as that one is just a modified WordPress plug-in, to integrate with our ERP systems API. Having something that could accept JSON data similar to how amp-list does for locations would be premium.

craigscott29 avatar Aug 14 '18 19:08 craigscott29

+1 for this!

amp-story-page-attachment does not allow for amp-iframes, but it would likely allow for something like this. A big help for my use case!

Has there been any design or implementation work done on this one yet? @aghassemi

Pateriack avatar Apr 05 '19 19:04 Pateriack

@Pateriack this is not prioritized from out end since amp-iframe handles it. I see the point about more restrict formats like amp-story and amp 4 email needing this.

@newmuis thought on priority of supporting maps in amp-story?

aghassemi avatar Apr 05 '19 21:04 aghassemi

I would say this is actually reasonably high priority for us. As announced at AMP Conf, Google is focusing on providing travel stories experiences, which would lead me to reasonably expect a drastic increase in travel stories (which I would expect may want to use maps).

newmuis avatar May 02 '19 19:05 newmuis

I'd like to get in on this too. I've recently implemented Places API with autocomplete on my main website to prompt users with locations when they are entering pick-up location. Unable to implement this on AMP but feel it should be fairly easy. Please!

charlessyms avatar Nov 12 '19 15:11 charlessyms

@nainar we have a contributor who's interested in contributing this, if we have the product nailed down. Do you think we're in a good place to do this?

newmuis avatar Apr 22 '20 16:04 newmuis

@aghassemi

We likely need to take the video player approach and do amp-x-map as API and feature set is different across map providers.

The W3C Maps For HTML Community Group is iterating over use cases and requirements for standardizing maps on the web - while not complete - the draft report lists capabilities (of a potential native map viewer) required for the use cases and which frameworks currently support each capability and to what extent, perhaps you'd find it helpful.

Malvoz avatar Apr 29 '20 11:04 Malvoz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 22 '21 08:10 stale[bot]