Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dean Brabin

Members
  • Joined

  • Last visited

  1. HTML:- <div class="container"> <div id="map-canvas-left"></div> <div id="map-canvas-right"></div> </div> === CSS:- html { height: 100%; } body { height: 100%; margin: 0; padding: 0; } .container { width: 100%; display: flex; } #map-canvas-left, #map-canvas-right { height: 250px; width: 550px; } #iw_container .iw_title { font-size: 16px; font-weight: bold; } .iw_content { padding: 15px 15px 15px 0; } ==== Java Script: - // * // * Two maps on the same page // * 2015 - en.marnoto.com // * // necessary variables var mapLeft, mapRight; var infoWindowLeft, infoWindowRight; // markersData variable stores the information necessary to each marker var markersDataLeft = [ { lat: 40.6486333, lng: -8.745, name: "Camping Praia do Farol", address1:"Rua Diogo Cão, 125", address2: "Praia da Barra", postalCode: "3830-772 Gafanha da Nazaré" // don't insert comma in the last item of each marker }, { lat: 40.54955, lng: -8.7498167, name: "Camping Costa Velha", address1:"Quinta dos Patos, n.º 2", address2: "Praia da Costa Nova", postalCode: "3830-453 Gafanha da Encarnação" // don't insert comma in the last item of each marker }, { lat: 40.6447167, lng: -8.7129167, name: "Camping Gafanha da Boavista", address1:"Rua dos Balneários do Complexo Desportivo", address2: "Gafanha da Nazaré", postalCode: "3830-225 Gafanha da Nazaré" // don't insert comma in the last item of each marker } // don't insert comma in the last item ]; var markersDataRight = [ { lat: 40.6386333, lng: -8.745, name: "Camping Praia da Barra", address1:"Rua Diogo Cão, 125", address2: "Praia da Barra", postalCode: "3830-772 Gafanha da Nazaré" // don't insert comma in the last item of each marker }, { lat: 40.59955, lng: -8.7498167, name: "Camping Costa Nova", address1:"Quinta dos Patos, n.º 2", address2: "Praia da Costa Nova", postalCode: "3830-453 Gafanha da Encarnação" // don't insert comma in the last item of each marker }, { lat: 40.6247167, lng: -8.7129167, name: "Camping Gafanha da Nazaré", address1:"Rua dos Balneários do Complexo Desportivo", address2: "Gafanha da Nazaré", postalCode: "3830-225 Gafanha da Nazaré" // don't insert comma in the last item of each marker } // don't insert comma in the last item ]; function initialize(setMap) { var mapOptions; if(setMap == "mapLeft") { mapOptions = { center: new google.maps.LatLng(40.601203,-8.668173), zoom: 11, mapTypeId: 'roadmap', }; mapLeft = new google.maps.Map(document.getElementById('map-canvas-left'), mapOptions); // a new Info Window is created infoWindowLeft = new google.maps.InfoWindow(); // Event that closes the Info Window with a click on the map google.maps.event.addListener(mapLeft, 'click', function() { infoWindowLeft.close(); }); } else { mapOptions = { center: new google.maps.LatLng(40.601203,-8.668173), zoom: 9, mapTypeId: 'roadmap', }; mapRight = new google.maps.Map(document.getElementById('map-canvas-right'), mapOptions); // a new Info Window is created infoWindowRight = new google.maps.InfoWindow(); // Event that closes the Info Window with a click on the map google.maps.event.addListener(mapRight, 'click', function() { infoWindowRight.close(); }); } // Finally displayMarkers() function is called to begin the markers creation displayMarkers(setMap); // Create second map only when initialize function is called for the first time. // Second time setMap is equal to mapRight, so this condition returns false and it will not run if(setMap == "mapLeft"){ initialize("mapRight"); } } google.maps.event.addDomListener(window, 'load', function(){ initialize("mapLeft") }); // This function will iterate over markersData array // creating markers with createMarker function function displayMarkers(setMap){ var markersData; var map; if(setMap == "mapLeft"){ markersData = markersDataLeft; map = mapLeft; } else { markersData = markersDataRight; map = mapRight; } // this variable sets the map bounds according to markers position var bounds = new google.maps.LatLngBounds(); // for loop traverses markersData array calling createMarker function for each marker for (var i = 0; i < markersData.length; i++){ var latlng = new google.maps.LatLng(markersData.lat, markersData.lng); var name = markersData.name; var address1 = markersData.address1; var address2 = markersData.address2; var postalCode = markersData.postalCode; createMarker(setMap, latlng, name, address1, address2, postalCode); // marker position is added to bounds variable bounds.extend(latlng); } // Finally the bounds variable is used to set the map bounds // with fitBounds() function map.fitBounds(bounds); } // This function creates each marker and it sets their Info Window content function createMarker(setMap, latlng, name, address1, address2, postalCode){ var map; var infoWindow; if(setMap == "mapLeft"){ map = mapLeft; infoWindow = infoWindowLeft; } else { map = mapRight; infoWindow = infoWindowRight; } var marker = new google.maps.Marker({ map: map, position: latlng, title: name }); // This event expects a click on a marker // When this event is fired the Info Window content is created // and the Info Window is opened. google.maps.event.addListener(marker, 'click', function() { // Creating the content to be inserted in the infowindow var iwContent = '<div id="iw_container">' + '<div class="iw_title">' + name + '</div>' + '<div class="iw_content">' + address1 + '<br />' + address2 + '<br />' + postalCode + '</div></div>'; // including content to the Info Window. infoWindow.setContent(iwContent); // opening the Info Window in the current map and at the current marker location. infoWindow.open(map, marker); }); }
  2. Hello Everyone, I have design new logo. Tell me feedback work. Collecting logo design feedback from clients is best done. Website is https://thomas-dean-design.co.uk Please go thorough attached logo...
  3. You can change format in photoshop to jpg.
  4. 3D Source product configurator inky Robo Digital Draping Are some softwares for configurator
  5. After Web Design Seo is must important for a website to be good ranking on search engine.
  6. Photoshop, Giphy, Screem to gif These are some softwares to create gifs.
  7. You can post your page link on other sites to promote your page .
  8. While creating logo design their are some steps to keep in mind... Use a Visual Double Entendre. Color is Vitally Important. Make it Ownable Consider Proportion & Symmetry.
  9. To increase your keyword ranking you need to seo your site , seo are of two types first is on-page seo , second is off-page seo , On the page seo tasks: Keyword Research and Analysis for the website,Meta Tag Optimization for targeted pages of the website.,Website Verification from Search Engines like google webmaster tools,bing webmaster tools, alexa verification. Off Page Seo Tasks: Search Engine Submissions,Submissions in Search Engine Friendly Directories,Article writing,Article Submissions, Social Bookmarking, Classified Advertisement e.g.Adlandpro.com etc,Blog Creations,Blog Commenting,Blog Writing,RSS Submissions,Forum Postings.
  10. Compressjpeg a best and free software to compress image. I have use this software for long time.
  11. I have use Photoshop. Even when I want to create an animated GIF.
  12. We can also provide animation and design services..

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.