Code Monkey home page Code Monkey logo

mapguide-mvc-core-sample's Introduction

MapGuide Sample for ASP.net MVC Core

This is the Developer's Guide sample code ported to ASP.net MVC core.

This sample code uses the experimental MapGuideDotNetApi .net package from the mapguide-api-bindings project and the mapguide-react-layout viewer for coordinating all frontend actions.

Unlike the regular .net binding for MapGuide. The binding provided by MapGuideDotNetApi is cross-platform (supporting netstandard2.0) and can work in the following platforms where MapGuide binaries are also provided:

  • Windows (full .net Framework)
  • Windows (.net Core)
  • Linux (.net Core, Ubuntu 14.04 64-bit)

This sample code serves multiple purposes:

  • As an end-to-end validation of the MapGuideDotNetApi package
  • As an additional validation of the AJAX viewer compatibility layer provided by the mapguide-react-layout viewer
  • A modern update to the .net Developer's Guide sample code with none of the webforms (.aspx) legacy and old patterns.

Requirements

  • Windows or Ubuntu 14.04 64-bit
  • .net Core SDK 2.1
  • MapGuide Open Source 3.1.1 with Sheboygan dataset loaded

Building and running the Sample

  1. Download the latest MapGuideDotNetApi pre-release package here. Save the package to the packages subdirectory of your git clone

  2. From the root of your git clone, run:

    • dotnet add src/MvcCoreSample package MapGuideDotNetApi --version $PACKAGE_VER where $PACKAGE_VER is the nuget package version (including prerelease label)
    • dotnet restore
    • dotnet build
    • dotnet run

Installing and trying out the self-contained sample

You have MapGuide installed, but don't want to bother with the motions of getting all the required build tools to build and run this sample? No problem.

Thanks to the publishing features of .net Core, a pre-built self-contained version of this example is available for you to download:

All the required dependencies (except for MapGuide itself) are included. All you need is an existing MapGuide Open Source 3.1.1 installation with the Sheboygan dataset loaded.

To run the self-contained sample, download the appropriate package, extract it to a directory of your choosing, then from the command-line, go to that directory and run:

  • Windows: MvcCoreSample.exe
  • Linux: ./MvcCoreSample

NOTE: You may need to manually chmod +x the MvcCoreSample executable on Linux after extracting the package.

Once running, open a web browser and navigate to http://localhost:5000

mapguide-mvc-core-sample's People

Contributors

jumpinjackie avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

mapguide-mvc-core-sample's Issues

mapguide application in ASP.NET MVC

Hi there,

I am creating the mapguide application with ASP.NET , MVC , I have copied my folder to C:\Program Files\OSGeo\MapGuide\Web\www\fusion\templates\mapguide\ this directory.
Now I have written the path like " /mymvc/home/index " in initial task url in mapguide studio but i am getting error "HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable"

Requested URL 

http://localhost:80/mapguide/fusion/mymvc/home/index?locale=en&session=598ba408-06ee-11e6-8000-eca86bf83ce1_en_MTI3LjAuMC4x0AFC0AFB0AFA&mapname=cgmap1461153146391

physical path
C:\Program Files\OSGeo\MapGuide\Web\www\fusion\mymvc\home\index

Please help..!

Thanking you
Mohan

Rewrite for ASP.net core 2.1

Port the full PHP developer's guide sample

  • Hello Map
  • Hello Viewer
  • Interacting with layers
  • Working with feature data
  • Modifying maps and layers
  • Analyzing Features
  • Digitizing and Redlining
  • Custom Output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.