Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.



  <title>Place Search Fixed Textsearch Plugin</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="Place Search Fixed Textsearch Plugin">
  <script src="<token>/map_sdk?layer=vector&v=3.0&callback=initMap1"></script>
  <script src="<token>/map_sdk_plugins?v=3.0"></script>


  <div id="map"></div>
  <input type="text" id="auto" name="auto" class="search-outer form-control as-input" placeholder="Search places or eLoc's..." required="" spellcheck="false">




                body {
  margin: 0;
#map {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
#auto {
  width: 300px;
  position: absolute;
  z-index: 999;
  font-size: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  outline: none !important;
  top: 5px;
  border-radius: 10px;
  margin: 4px;



                var map, marker;
/*Map Initialization*/
function initMap1() {
  map = new mappls.Map("map", {
    center: [28.09, 78.3],
    zoom: 5
  map.addListener("load", function () {
    var placeOptions = {
      /* location:[28.61, 77.23] */

    /*CALL for fix text - LIKE THIS*/
    new"agra", placeOptions, callback);
    function callback(data) {
      alert("Data: " + JSON.stringify(data, null, 2));

      if (data) {
        var dt = data[0];
        if (!dt) return false;
        var eloc = dt.eLoc;
        var place = dt.placeName + ", " + dt.placeAddress;
        /*Use elocMarker Plugin to add marker*/
        if (marker) marker.remove();
            map: map,
            pin: eloc,
            popupHtml: place,
            popupOptions: {
              openPopup: true
          function (data) {
            marker = data;