mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • m-Painter
  • Add Google Maps to your Applications
Back to Manual

 

Add Google Maps to your Applications

 

Some common purposes of the Google Maps are:

  • Map a list of available products and where your customer base may find them
  • Visualize the location of your nationwide fleet
  • Embed closed order addresses to determine shipping logistics
  • Map a list of current clients to see what geographical areas need more of your sales attention
  • Create a graphical representation of your partners' locations for easy customer search

Please follow the steps below to integrate a Google Map inside of your web application:

Note: Before applying a Google Map to your application, your organization will need to license the Google Maps service directly from Google. Please see the Google Maps Terms of Service for information regarding plans and pricing and visit Get API Key to register for an API Key.

Once you have your API key value, you will need to insert this into your mrc_servlet_config.xml file. This is accessible from the Admin Menu -> Edit Dictionary Files -> Servlet Properties. Open text mode from the 'More' button on the right. Find the following property and insert the API key value into the empty value string:

<google-map-key pdesc="mapkey" value="" />

Save and restart Tomcat.

The following steps need to occur each time you wish to generate a map:

  1. Click the Globe within the m-Painter toolbar (shown below highlighted with a red outline).
  2. A helpful pop-up will appear that will allow you to customize your map. Options include:
    1. Ability to control the Width and the Height of your map (in pixels).
    2. Control the Default zoom level (The higher the number, the more zoomed in you are by default).
    3. The ability to control default centering (By default, maps will center upon the first address, however you can center by a Latitude/Longitude line)
    4. The ability to control the marker type (By default the marker will be the red Google flag, however, you can conditionally use different images by entering the path to an image within a calculation. In this case, you would select the given calculation from the Custom marker image dropdown. Lastly, you could specify "Other" from the drop-down and hard code a static path to an existing image.
    5. Show marker info allows your end user to control how they see additional "balloon" information. By default, the option is on click. However, changing the value to "Mouseover" will activate the balloon window on mouse contact.
    6. Map Address — This option is perhaps the most important, as it controls what is mapped by Google. You can specify an entire address, a city, a zip code, or even just a state. So long as it is a valid location, it can be mapped! Select the necessary fields from the "Select Field" drop-down. Then press the "Add" button. Note: Be sure to add the necessary delimiters, such as commas where necessary.
    7. Marker Text Info — This option controls what data is seen in a balloon pop-up when a user clicks on a marker within the map. As a developer, it is your decision what data, if any, should appear in the balloon pop-up.
  3. When completed, press "OK" and Save your application.
  4. When your application executes, you will see your Data markers begin to fill the screen as a progress bar within the map informs you of how many points have been populated:

  5. Once completed, your map will look something like this:

 
Additional Notes:
Question: I have some existing m-Power maps that were created before 2014 and use the old Google Maps (v2) logic. What can I do to make these work?
Answer: To convert an older map to the latest logic, simply open the application in m-Painter and click "Save." m-Painter will make all of the necessary changes to your existing map to convert it to the proper (v3) syntax.

Question: My application was heavily painted and I've had to change m-Painter to text-editing mode. How can I still upgrade to v3?
Answer: To manually convert an existing application, make the following two changes:
1. Add "${mapScripts}" directly before "<script type="text/javascript" id="mrcmap">"
2. Change "document.observe("dom:loaded", function() { " to "jQuery(function() {"
3. Save.

Created: July 16, 2009 | Modified: August 18, 2017

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Popular Parameters SQL Email Maintainers Bar Graphs Calculations Video Getting Started Excel Dates Graphs Dropdowns mrc-Productivity Series Prompt Screens Retrieval Admin Administration External Objects Advanced DB2 Build Process Application Properties m-Painter Summaries Data Dictionary Freemarker Performance Report App Properties Compiling RPG Graph Properties Security Graphing Java Retrievals Production Database Maintainer Tomcat Form Validation Reports Record Selections Bootstrap Templates

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.