Have you looked at the Google Developers Maps API Documentation?
They provide a working example with source code here...
Customizing a Google Map: Custom Legends
https://developers.google.com/maps/documentation/javascript/adding-a-legend
Nolan Roberts
Wyffels Hybrids Inc.
309-945-0722 - Desk
309-230-2314 - Cell
From: "(WalzCraft) Jerry Forss" <JForss@xxxxxxxxxxxxx>
To: "java400-l@xxxxxxxxxxxx" <java400-l@xxxxxxxxxxxx>
Date: 03/29/2017 03:12 PM
Subject: Google Maps Legend Issue
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>
Hi All,
I know this is not part of this group but hoping someone can give me some
guidance off list.
I know very little about HTML but got a basic map with markers to display.
I create the HTML doc on the IFS from my RPG pgm to display a Google Map
internally.
The user wants different sizes and colors of pins (based on sales) to be
used for markers.
That all works fine.
My issue is in trying to create a legend of the pins.
The legend displays with the text of the pin, but the pin itself is just
an X.
I have spent way too long trying to figure this last part out.
Please reply to me directly if you have knowledge in this area and are
willing to give me some guidance.
I have posted on a few Google Map, HTML and other forums with NO
responses.
I will send you my code.
Thanks!!!
Jerry Forss
Information Technology Team
WalzCraft
608-781-6355 EXT 2530
jforss@xxxxxxxxxxxxx
Subject to Change Notice:
WalzCraft reserves the right to improve designs, and to change
specifications without notice.
Confidentiality Notice:
This message and any attachments may contain confidential and privileged
information that is protected by law. The information contained herein is
transmitted for the sole use of the intended recipient(s) and should
"only" pertain to "WalzCraft" company matters. If you are not the intended
recipient or designated agent of the recipient of such information, you
are hereby notified that any use, dissemination, copying or retention of
this email or the information contained herein is strictly prohibited and
may subject you to penalties under federal and/or state law. If you
received this email in error, please notify the sender immediately and
permanently delete this email. Thank You;
WalzCraft PO Box 1748 La Crosse, WI. 54602-1748
www.walzcraft.com<
http://www.walzcraft.com/> Phone... 800-237-1326
As an Amazon Associate we earn from qualifying purchases.