Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:07:24+00:00 2026-06-02T01:07:24+00:00

I currently have a web app that uses the google maps API, PHP, and

  • 0

I currently have a web app that uses the google maps API, PHP, and MySQL to populate custom map bubbles and markers on a map.

Currently, the app is hosted by us and managed by us and is included as an iframe on a clients page, however this is quite tiresome..

I would like to develop an API/library that can be included on the page and then inject code into a div container (much like Google maps does). However, i have no idea what to search for or what to read up on to learn.

I have a basic rest api that is configured to provide read-only functionality in json/jsonp format to an authorized client. I am using Phil Sturgeon’s REST-SERVER library for CI.

Here is a link to the current format, we pull this page in an iframe with no-scrollbars.
http://fhaz.mapitusa.com

Update: I found a partial solution.. web widgets: http://alexmarandon.com/articles/web_widget_jquery/

i need to develop a web widget.

I need to know:

  1. what to learn
  2. what types of programming methodologies to know
  3. What to look for examples
  4. What are some options to get away from the iframe and using a sort of “hard embed”.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T01:07:26+00:00Added an answer on June 2, 2026 at 1:07 am

    You didn’t say it out loud, but because you specifically mention you now have a read-only api i figure you also want to send commands to the (your) server. I would start with looking into authentication methods. And for this, I would go for OAuth. You’ll have to write a basic client class which can connect and authenticate the client to the server. This can be pretty simple and small. Php even has a pecl extension available (see http://nl.php.net/manual/en/book.oauth.php) which is pretty easy to use. If you do not have the possibility of installing pecl extensions curl will also do the trick, and even that isn’t really necessary. Twitter also has a nice explanation of how OAuth works, with links to external resources. Check it out! https://dev.twitter.com/docs/auth/oauth

    Note that at the server level you’ll have to implement your own role system, oauth only lets your client connect to the server in a secure manner. Ie. it will let your “users” log in to your application, but will not check if the logged in user is, example given, an admin user with all rights, a read-only user or something in the middle.

    If you have OAuth straightened out just write a list of API calls you want to implement. You should namespace them, for example like:

    /map/marker/get
    /map/marker/set
    /map/bubble/get
    ...
    

    Your client API should be able to make a call like this:

    $api = new MyGreatApi();
    $params = array('id' => 3, 'color' => 'red', ...);
    $response = $api->call('/map/marker/get', $params);
    echo $response;
    

    Check out some oauth library implementations like the one Twitter promotes (https://dev.twitter.com/docs/twitter-libraries#php), or in example the really simple one bits on the run uses (http://developer.longtailvideo.com/botr/downloads/php-api-kit.zip)

    At server level you catch the api call and route the request to the specific controller (to use some MVC terms). If, eg, you fetch the call ‘/map/marker/get’ you can just explode('/', $call); and search for the right class/function/method/whatever and let it do the magic for you, then send back the output (which can be as simple as to echo $output) and you are up and running! Note that if you have the authentication and role-checking right, the functions which produce the output can be treated as normal, oldschool, php functions. There’s nothing special at them! It’s the authentication and routing of api calls which should be your main concern.

    I hope this clarifies some of your questions and give you a direction. If I misunderstood your question, please correct me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a web app that uses Google's Static Map API, in
I have a web app that uses Google Maps API v3. I have it
We currently have a .NET 2.0 web app that uses forms authentication via cookies.
I currently have a web app that uses ActiveX / JScript to read files
I have a web app that currently uses the current HttpContext to store a
I have a web app that currently is inserting x (between 1 + 40)
We have a web application that uses dropbox as file storage. We have currently
I have a web app that I'm building. It uses 3 different web services
I currently have an iPhone app in the iTunes app store that uses a
If you have used the Google Maps web app on your iphone or ipad

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.