Added Map to promosteem.com website

in Steem Marketing3 years ago

Screen Shot 2021-08-08 at 20.37.51.png

based on directions from the promosteem community leader, @arie.steem. he asked me to add a map showing the names of community members based on their origin

I made this using Google Maps API

I made this all using Maps API from google. actually many other API providers besides google. However, for now google is number one in this section. so therefore I chose to use the API from google.

I'm just trying to add some community members based on their country for the experiment. For completeness, we will add more later.

Proof of Work

https://github.com/sogatanco/steemsg/commits/master

Screen Shot 2021-08-08 at 20.48.55.png

Can we get the code from this application?

Of course, because this application is an open source application. so anyone can see it. I accidentally uploaded this app on my github. you can see at this link: https://github.com/sogatanco/steemsg

import React from 'react';
import { Map, GoogleApiWrapper, Marker } from 'google-maps-react';
import '../App.css';

 
class Maps extends React.Component{
     render(){

         return(
             <div className="tes">
                  <Map className="map"
                google={this.props.google}
                zoom={3}
                
                initialCenter={{ lat: 4.635481, lng: 96.896346 }}>
                    <Marker position={{ lat: 5.145732, lng: 97.144462 }}  label="@ponpase"/>
                    <Marker position={{ lat: 5.117384, lng:97.210470}}  label="@arie.steem"/>
                    <Marker position={{ lat: 5.117384, lng:97.210470}}  label="@pojan"/>
                    <Marker position={{ lat: 8.154480, lng:-1.128527}}  label="@mcsamm"/>
                    <Marker position={{ lat: 29.414012, lng:69.089543}}  label="@cryptokraze"/>
                    <Marker position={{ lat: 3.139874, lng:101.668448}}  label="@talktofaith"/>
                    <Marker position={{ lat: 15.199774, lng:107.984233}}  label="@oscarcc99"/>
                </Map>
             </div>
      
         )
     }
}


export default GoogleApiWrapper({
    apiKey: 'GOOGLE API KEY'
  })(Maps);

LIVE DEMO

please try it, if there are shortcomings and irregularities we really welcome suggestions from all of you. please write in the comments column below.

Thanks to : steemcurator01, @stephenkendal, @pennsif

image.png

Sort:  
 3 years ago (edited)

checked, works very well - good job! Waiting for more data. It will be very interesting to see where all the promo-steem members are from :) Maybe it could show pinned city or at least the district instead of the country to make it even more interesting.

Thank you for that useful tool!

 3 years ago 

thank for checking bro

 3 years ago 

good job , keep update the map feature
there's still a lot that needs to be fixed

 3 years ago 

sipp leader

This post has been featured in the latest edition of Steem News...

 3 years ago 

thank alot bro

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 64029.44
ETH 3157.04
USDT 1.00
SBD 4.02