GithubHelp home page GithubHelp logo

jasonaalmeida / pcf_googlemapsgrid Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 6.0 759 KB

A PCF control to render a view of records on Google Maps

License: GNU General Public License v3.0

CSS 6.10% TypeScript 93.90%
pcf powerappscomponentframework powerapps powerapps-solutions

pcf_googlemapsgrid's Introduction

PCF - Google Maps Grid

A PCF control to render a view of records on Google Maps using the location information (lat/long) againt each record.

Features

  • The control uses the columns in the view to display an information window when a location marker is clicked.
  • The information window also includes a configurable title that will navigate the user to the respective record
  • The control also requests your current location to display the map in the correct area. Location data is not transmitted externally. You can choose to deny this permission and the map will load at lat/long 0,0.

NOTE: You will need to provide a Google Maps API Key.

Gmaps Preview

Configuration

Use the following steps to configure a Google Maps Grid against a view after installing the solution

  1. Add the desired columns/filters to a view. Reember to include the respective latitude and longitude fields in the view. To keep things clean, the lat/long fields are ignored when displaying the information window
  2. Click the 'Custom Control' button to add the control
  3. Select the 'Google Maps Grid' control
  4. Control parameters (Screenshot below):
    1. Primary Field - The logical name of the primary field to be used as the title for the information window when a marker is clicked
    2. Latitude Field - The logical name of the latitude field to be used to pin point the location of a particular record
    3. Longitude Field - The logical name of the longitude field to be used to pin point the location of a particular record
    4. Google Maps API Key - The API key to allow Google Maps to load

GMaps Configuration

CDS Solution

For convienence, the Releases folder contains a managed solution that can be installed on CDS.

pcf_googlemapsgrid's People

Contributors

jasonaalmeida avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pcf_googlemapsgrid's Issues

Pins on Opportunity entity

Hi Jason,

I'm not able to show the pins on my opportunity entity and have no idea what I'm doing wrong...
Is it possible that this PCF only works on account/contact entity?
I even created the longitude & latitude fields exactly like in the account entity
image
image

And here you can see the controls I've set on the view;
image
image

And yet I see the map, but no pinpoints (and yes fields are filled in on record-level, even when I refresh it doesn't show).
image

Latitude and Longitude data type fields

Hi

I am trying to use this PCF, I can see google maps but I don't see any pin. I have already included Latitude and Longitude fields in the view, but they are a single line of text, should they be number or decimal?

New functionality

Hi Jason,

Sorry I am not reporting an issue but asking for a functionality and I didn't know how to contact you...

I am looking to display records with different pin colors depending on a specific field.
For example, my accounts are categorized (farmers, distributors, prescriptors) and I would like to display them on a map with a different color depending on the category.

Do you know if this is something that you could easily add in your project ?

Thanks in advance for your feedback.
Sebastien.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.