hanzei / hugo-component-osm Goto Github PK
View Code? Open in Web Editor NEWOpenStreetMap shortcode for hugo
Home Page: https://hugo-component-osm.netlify.com/
License: MIT License
OpenStreetMap shortcode for hugo
Home Page: https://hugo-component-osm.netlify.com/
License: MIT License
So where do I found this via an issue by @divinerites thank you, I really do not want to have google maps on my site. I have found that it works as described if I set the shortcode on a post
title: First post!
date: 2015-01-05{{< openstreetmap mapName="c4ad-cic_240326" >}}
This is my first post, how exciting!
But for the contact page, it needs to go on the layout?
I thought I would need to go to:
HugoWebsite/themes/airspace-hugo/layouts/partials/contact.html
remove everything between {{ with .gmaps}} and {{end}} and replace it with
Source OpenStreetMap
<iframe width="{{ $mapWidth }}" height="{{ $mapEight }}" frameBorder="0" src="https://umap.openstreetmap.fr/fr/map/{{- $mapName -}}?scaleControl={{ $scaleControl }}&miniMap={{ $miniMap }}&scrollWheelZoom={{ $scrollWheelZoom }}&zoomControl={{ $zoomControl }}&allowEdit={{ $allowEdit }}&moreControl={{ $moreControl }}&searchControl={{ $searchControl }}&tilelayersControl={{ $tilelayersControl }}&embedControl={{ $embedControl }}&datalayersControl={{ $datalayersControl }}&onLoadPanel={{ $onLoadPanel }}&captionBar={{ $captionBar }}&fullscreenControl={{ $fullscreenControl }}#{{ $scale }}/{{ $coordX }}/{{ $coordY }}"></iframe>
Is this right?
May be you can give a hint about the mandatory setup of a map on https://umap.openstreetmap.fr/ ?
you can find some partial informations on my original post https://discourse.gohugo.io/t/shortcode-for-openstreetmap-instead-of-googlemaps/12965
Thanks for putting that in a clean theme addon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.