<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Programmer on Medium]]></title>
        <description><![CDATA[Stories by Programmer on Medium]]></description>
        <link>https://medium.com/@tarunmeher123?source=rss-adcddc22b32c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0dOSNc6BNkqaIJLg</url>
            <title>Stories by Programmer on Medium</title>
            <link>https://medium.com/@tarunmeher123?source=rss-adcddc22b32c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:09:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tarunmeher123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Openlayers + Angular (How to create openlayers map using Angular)]]></title>
            <link>https://medium.com/@tarunmeher123/openlayers-angular-how-to-create-openlayers-map-using-angular-1dc3c89a663c?source=rss-adcddc22b32c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dc3c89a663c</guid>
            <category><![CDATA[openlayers]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[openlayersinangular]]></category>
            <category><![CDATA[angular-map]]></category>
            <category><![CDATA[openlayerswithangular]]></category>
            <dc:creator><![CDATA[Programmer]]></dc:creator>
            <pubDate>Fri, 25 Feb 2022 07:10:11 GMT</pubDate>
            <atom:updated>2022-02-25T07:10:11.305Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, Everyone.</p><p>If you are working in <strong>WebGIS</strong> using <strong>JavaScript</strong>, and searching a blog to create <strong>Openlayers</strong> map using <strong>Angular</strong>, then you are at the right place.</p><p>At the end of the blog, I am sure you will get to know, how to create an Openlayers Map using Angular.</p><p>So, without wasting time by discussing any other stuffs, Let’s Start.</p><p>You are going to develop any angular project then you must have <strong>NodeJS </strong>installed in your machine. You can download the NodeJS from the following site <a href="https://nodejs.org/en/"><strong>https://nodejs.org/en/</strong></a></p><p>After successfully installation of NodeJS in your system, add angular cli to your NodeJS, cause all your Angular code will run on Angular CLI.</p><p>Open the <strong>NodeJS Command Prompt, </strong>you can search from the window search box. and run the following command <strong>npm install -g @angular/cli</strong></p><p>After successfully installation of angular cli, run following command to create a default angular project.</p><p><strong>ng new olmapdemo</strong></p><p>It will create a default Angular project named <strong>olmapdemo</strong>.</p><p>Now run <strong>ng serve, </strong>it will start the server of the project, and search <a href="http://localhost:4200/"><strong>http://localhost:4200</strong></a><strong> </strong>in your browser. You can see a default angular application in your browser.</p><p>Okay, So Far, you have successfully create a angular project, now we have to develop/add map to our application.</p><p>Let’s add the Map.</p><p>run <strong>npm install ol </strong>, it will download all the dependent <strong>ol</strong> package into your <strong>node_module.</strong></p><p>then, run <strong>npm install @types/ol</strong></p><p>Ok you have install all the ol dependencies packages.</p><p>Now, Open <strong>angular.json</strong> and add “<strong>node_modules/ol/ol.css</strong>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*UZlbbvWZEcGTdPZ4VAiZbQ.png" /><figcaption>add “node_modules/ol/ol.css”</figcaption></figure><p>Now open <strong>tsconfig.json </strong>and add <strong>“skipLibCheck”:true</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*949vMRgVpsCwMJeuEkf_hA.png" /></figure><p>Now write code to view a simple on map.</p><p><strong>app.component.html</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*IeePQ0ZBB1xDbG3EFPJJwg.png" /></figure><p><strong>app.component.ts</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UdqakHWQ01v5Bj2N-kk_4Q.png" /></figure><p>Now, restart the server and check in your browser. You have developed a Openlayers Map in Angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVmT4E7fqRjcFnhRjcCXDQ.png" /></figure><p>Good Job !!!!!</p><p>I hope you understood, how we create the map</p><p>Thank You !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dc3c89a663c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>