Why polylines not know in jmelosegui google map control? - asp.net-mvc

I'm beginner in asp.net mvc and want to write simple web application for practice,show map and on the map show road map,for that purpose use the this tutorial and tools:
this line
but in this line:
.Polylines(pf => pf.Add()
i get this error:
Map Builder does not contain Polylines are you missing assembly?
how can i solve that ?thanks.

As stated in this tutorial, you need to create your LatitudeLongitude values as a List to create polyline using asp.net.
var points = new List<GLatLng> { new GLatLng(59.6919, 17.8582),new GLatLng(59.3030, 18.0395),new GLatLng(58.9789, 17.5341) };
var polyline = new GPolyline(points,"#ff0000",1);
Check this related SO questions:
Trying To Draw polyline Resulting in Error C# Web App
MVC Google Map Polylines

Had exactly the same problem.
If you follow the official instructions and if you execute
Install-Package Jmelosegui.Mvc.Googlemap
in PM Console, you will get version 0.8.0 installed which does not contain Polyline yet.
See: http://www.jmelosegui.com/map/
The author told on his GitHub page that you might need to install the newest beta version to get all new features. It is indeed confusing that he promotes already features there which are not officially released yet. A beta version is not a release version for me. ;-)
Therefore execute
Install-Package Jmelosegui.Mvc.Googlemap -Version 0.8.16-beta-gd2b2689432
in PM Console, that new beta version contains Polyline.
More information: https://libraries.io/nuget/Jmelosegui.Mvc.Googlemap

Related

DirectX Install Directory

So, I tried installing Microsoft DirectX 2010, when I was setting the directory of in the installer I put it to the wrong directory that I wanted it in. Now, every time I open the installer, it doesn't give me an option to change the directory, it just says continue and install. If anyone has a solution to this that would be really nice.
EDIT: Also forgot to note that when I installed it on my D: drive (its supposed to be on C: ) I get the error code S1023
The S1023 issue is detailed in this post. Because the setup just outright failed, and it's built on ancient pre-MSI technology, you need to clean out the old installation manually.
Delete the failed install directory
Using regedit to delete HKCU\Software\Microsoft\DirectX SDK, HKLM\Software\Microsoft\DirectX SDK. If you are on a x64 system (which I hope you are), also delete HKLM\SOFTWARE\WOW6432Node\Microsoft\DirectX SDK.
Edit your system environment variables and remove the entry for DXSDK_DIR.
The DirectX SDK is deprecated. If you are using VS 2012 or later -or- the Windows 8.0 SDK or later, and you are using DirectX 11 or DirectX 12, then you don't need it. See Microsoft Docs.
There are a few cases where it's still legitimate to use the legacy DirectX SDK as covered in The Zombie DirectX SDK, but for the most part you should avoid using it for new projects.
If you are trying to get an old game to work, try installing the latest DXSETUP/DXWSETUP but keep in mind that it doesn't actually install DirectX at all. See Not So Direct Setup
UPDATE: There are now really no reasons to use the legacy DirectX SDK at all. See Where is the DirectX SDK (2021 Edition)? for the overall status and details.
For legacy D3DX9/D3DX10/D3DX11, use the Microsoft.DXSDK.D3DX NuGet package per this blog post. No need for the legacy DirectX SDK or to use legacy DXSETUP for this solution.
For XAudio2 on Windows 7, use the Microsoft.XAudio2.Redist NuGet package per Microsoft Docs.

Failure running WebSharper 4.0 tutorial

I am learning how to use WebSharper. Actually, I am failing to learn how to use WebSharper.
I wanted to learn how to build a simple SPA so I followed this tutorial from the WebSharper page. I am able to create the SPA with Visual Studio and Zafir (the codename for WebSharper 4.0 that is in beta). I followed every step in the tutorial. I have created a repo on github that is everything in the SPA.
The project won't build. More specifically, in the Client.fs file, I get compiler error
The value or constructor P is not found
in line 10 with the P, in line 11 the same error with the Div, and in line 18 I get the error
Namesapces cannot contain values. Consider using a module to hold your value declrations.
with Run(), yet when I try to move the [<SPAEntryPoint>] information into the module HelloWorld, I get the error
Lookup on object of indeterminate type based on information prior to this program point. A type annotation...
As a result, when I try to build this project, the build fails.
Why am I getting these errors? Is the tutorial out of date with the rest of WebSharper? What can I do to get a simple tutorial to work correctly?
EDIT: I get the same errors when I use WebSharper v3.x, too.
Although not mentioned in the tutorial, adding
open WebSharper.Html.Server
eliminated the compiler errors with P and Div, adding
open WebSharper.Html.Client
eliminated a new compiler error of OnClick, and moving the [<SPAEntryPoint>] into the module eliminated that compiler error and allowed me to build the project.
Thanks for the report! I have updated documentation, indeed that page was not updated since a while. I will review it more thoroughly.
The source of the documentations are found at https://github.com/intellifactory/websharper.docs, feel free to add issue there about further questions/problems or also you can submit a PR.

Setting-up Lua in Cocos Code IDE

I am starting a new Lua project so I downloaded Cocos2d-x and Cocos Code IDE. How to configure the IDE so that it uses cocos2d-x? See the picture below:
Whenever I point that to cocos2d-x folder, an error pops-out:
I am just a beginner, and I chose cocos2d over Corona because it's open-source and free.
Make sure you are using (at least) cocos2d-x version 3.2. I had the same problem when I tried first with version 2.2.5 but, as you will read on the wiki under the heading Basic Requirements, you must use 3.2 Final.
In a related vein, though not the cause of your problem, as a Windows user you need to have Python 2.7.x installed.

Sample code for file-picker in Xamarin android

Can anyone show me how to implement a file-chooser/picker for Android using Mono?
Thanks in advance,
Tery
Would this sample work for you?
You can also use one of the Xamarin Plugin projects available as a NuGet package, if you want to support more platforms later. The currently most actively maintained package is this one:
https://github.com/jfversluis/FilePicker-Plugin-for-Xamarin-and-Windows
(note: I'm one of the contributors to the project).
Picking files is as easy as calling var result = await PickFile() and checking the result object. See also the sample code mentioned in the README.md of the Github project.

Is there a new version of Zend_Tool for ZF2?

if so, where can it be found?
is it going to have a new handle as to not conflict with zf1's tool?
zf2 create module admin
Zend_Tool documentation can be found here:
http://framework.zend.com/manual/en/zend.tool.usage.cli.html
There is no Zend\Tool component implemented for Zend Framework yet. According to Matthew Weier O'Phinney (Project Lead Zend Framework):
Zend\Console is being worked on for beta4,
which lays the groundwork for new tooling; we may or may not have basic
tooling available for beta4 (depends on when Console hits the master
branch, basically).
Right now, the preferred method for starting with the application is to
use the ZendSkeletonApplication, along with ZendSkeletonModule, as these
give the basic infrastructure you need to start development of an
application and modules, respectively.
Source: http://zend-framework-community.634137.n4.nabble.com/Where-is-the-ZF-tool-in-ZF2-located-td4492524.html
The new Zend Tool for Zend Framework 2 has been released recently and could be found on github: https://github.com/zendframework/ZFTool

Resources